How do you convert a .doc file into a .pdf file using VB code?

Converting a Doc File into a PDF

Steps:

  • While converting Doc file to PDF it loses all hyperlinks during conversion..although there is a solution to this also exist. There are two ways that can be used to convert Doc file to PDF. i) Convert Doc file to PS there are free Dos Utilities availabe free. then convert that PS(Post Script) file to PDF through Adobe Disteller.this can be done easily with VB. ii) Convert Doc file to PRN file by Printing Doc file and selecting PRINT TO FILE from print Dialog's options. give name to new PRN file. Use distller or any free Dos based utility to convert PRN file to PDF using VB.

Here are more opinions and answers from other FAQ Farmers:

  • To convert any file to PDF: 1. Install a printer (there are nmany drivers comes with windows). 2. Install ghost script. 3. Print any file on postscript printer and save this file as *.ps. 4. Now run ghostscript. command "gswin32c -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -r600 -sOutputFile=" & """c:\awaPDF\pdf\awaPDF.pdf"" " & "-c save pop -f" & " ""C:\awaPDF\awaPDF.ps"" "

  • Unless you're determined to do this with code, I suggest going to www.theopencd.org and get a free copy of PDF maker. It's Open Source, therefore free. It also works. Or, good luck with the code thing.

  • To see any easy solution, turn on your audio speakers and click this link: http://www.utipu.com/app/invited/id/eb6016048a83412bb6034054ebb3b5d7

Improve Answer Discuss the question "How do you convert a .doc file into a .pdf file using VB code?" Watch Question

First answer by Rafaqat Gakhar. Last edit by Mark Louis. Contributor trust: 33 [recommend contributor]. Question popularity: 303 [recommend question]

Research your answer:

Answers.com > Wiki Answers > Categories > Technology > Computers > Computer Software and Applications > How do you convert a .doc file into a .pdf file using VB code?

Our contributors said this page should be displayed for the questions below. (Where do these come from)
If any of these are not a genuine rephrasing of the question, please help out and edit these alternates.
Convert Doc to PDF?  Convert doc file to pdf?  How do you open a DOC file?  How do you switch a file to pdf?  How do you convere using VB code?  How do you convert to a pdf file?  How do you convert a doc file into a pdf file usin?  How do you email a MS Works doc as a pdf attachment?  How do you convert a doc file into a pdf file using VB code?  How do you convert a doc file into a pdf file using VB codeg VB code?  How do you take a print of pdf file by making pdf file as backend in javascript?