Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word to pdf

Status
Not open for further replies.

GMcFly

Programmer
Oct 2, 2002
48
NL
Hello all, I'm trying to convert a word file to a pdf file from within visual basic. Does anybody have an idea how to do this?

Thanks
 
There are a few free drivers out there to enable you to "print" a word document to a pdf file. Search on Google.
Automate the File.Print after specifying the printer to be used and there you go.
 
Thanks. I should have said this before, but I have adobe acrobat installed on my pc, that's not the problem. But how do I convert a word file automatically using adobe acrobat?
 
Assuming you actually have Distiller installed, it probably doesn't work because you have a different version of Word installed from that of the author. Try changing all references in the code from:

Word.Application.8

to

Word.Application
 
yeah, that solved one problem, but it still doesn't work. It gives an error (-2147022986) saying "the object exporter specified was not found". Do you have any idea what this error is or do you know another way to do the pdf conversion? Thanks for your help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top