Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2006

Tip: Looking for answers? Try searching our database.

pdf files using VBA

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ram - 02 Feb 2006 21:36 GMT
Is it possible to convert a rtf or word document to a pdf file? If yes, can
someone help me how to do that using  MS word VBA.
Thanks
Jezebel - 02 Feb 2006 22:08 GMT
Yes it's possible, provided you have the application to do it (such as
Acrobat or one of the clones).

The method (for Acrobat) depends on which version you have. The actual
conversion is simple. (Set Acrobat as the active printer, then print the
document.) The hard part is preventing Acrobat prompting for the filename.
Some versions of Acrobat use a registry entry: set that to the filename and
you're done. Or you tweak the Acrobat printer settings so it doesn't ask;
the PDF then ends up in the same folder as the Word document, same name but
with PDF extension.

> Is it possible to convert a rtf or word document to a pdf file? If yes,
> can
> someone help me how to do that using  MS word VBA.
> Thanks
Ram - 10 Feb 2006 15:04 GMT
Hi,
  Thank you that I can print a rtf or word doc to pdf. But can some tell me
how to do that (basic vba command). And also when I print the rtf or word
file to pdf destination, I would like to print it to a different folder.

> Yes it's possible, provided you have the application to do it (such as
> Acrobat or one of the clones).
[quoted text clipped - 11 lines]
> > someone help me how to do that using  MS word VBA.
> > Thanks
Dawn Crosier - 03 Mar 2006 18:42 GMT
Once Acrobat is started, which occurs after the print button is
activated, either through code or through the manual steps, you have
to code using Acrobat itself.  Therefore, you are going to need to get
the remainder of your code from Adobe.  I have yet to see the ability
to control Acrobat via Word or any office application.

Sorry.

Signature

Dawn Crosier
Microsoft MVP
"Education Lasts a Lifetime"

This message is posted to a newsgroup. Please post replies and
questions to the newsgroup so that others can learn as well.

> Hi,
>   Thank you that I can print a rtf or word doc to pdf. But can some
[quoted text clipped - 27 lines]
>> > someone help me how to do that using  MS word VBA.
>> > Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.