How do you convert a .doc file into a .pdf file using VB code? |
[Edit] |
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
First answer by Rafaqat Gakhar. Last edit by Mark Louis. Contributor trust: 33 [recommend contributor]. Question popularity: 303 [recommend question]
|
Research your answer: |
Can you answer other
questions about software and apps?



