Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Word
application.errors
conversions
docmanagement
drawing.graphics
formatting.longdocs
international
internet.assistant
mail
mailmerge.fields
menustoolbars
newusers
numbering
oleinterop
pagelayout
printingfonts
setup.networking
spelling.grammar
tables
vba.addins
vba.beginners
vba.customization
vba.general
vba.userforms
web.authoring
word6-7macros
word97vba
  
 
date: Thu, 2 Feb 2006 13:36:29 -0800,    group: microsoft.public.word.vba.customization        back       


pdf files using VBA   
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
date: Thu, 2 Feb 2006 13:36:29 -0800   author:   Ram

Re: pdf files using VBA   
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.







"Ram"  wrote in message 
news:C0EF9ABF-678C-4489-B249-8610F34D9175@microsoft.com...
> 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
date: Fri, 3 Feb 2006 09:08:26 +1100   author:   Jezebel

Re: pdf files using VBA   
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. 

"Jezebel" wrote:

> 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.
> 
> 
> 
> 
> 
> 
> 
> "Ram"  wrote in message 
> news:C0EF9ABF-678C-4489-B249-8610F34D9175@microsoft.com...
> > 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 
> 
> 
>
date: Fri, 10 Feb 2006 07:04:27 -0800   author:   Ram

Re: pdf files using VBA   
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.

-- 
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.

"Ram"  wrote in message 
news:EB899EA9-68D3-4E06-AE66-79A96E199364@microsoft.com...
> 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.
>
> "Jezebel" wrote:
>
>> 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.
>>
>>
>>
>>
>>
>>
>>
>> "Ram"  wrote in message
>> news:C0EF9ABF-678C-4489-B249-8610F34D9175@microsoft.com...
>> > 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
>>
>>
>>
date: Fri, 3 Mar 2006 12:42:52 -0600   author:   Dawn Crosier

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us