Problem for Conversion of Doc file to PDF

If you are a VB developer and have questions about using our products from VB, here is the place to post them.
Post Reply
kamleshvgujarathi
Posts: 39
Joined: Fri Jan 09 2004
Location: Bombay ( INDIA)
Contact:

Problem for Conversion of Doc file to PDF

Post by kamleshvgujarathi »


Hello Jose,

Code: Select all

  

1   Dim pdf As New CDIntfEx.CDIntfEx
2   pdf.DriverInit ("TymSphere Printer")
3   pdf.EnablePrinter "LicenKey", "LicenCode" 
4   NoPrompt = 1
5   pdf.FileNameOptionsEx = NoPrompt + ConfirmOverwrite
6   ConfirmOverwrite = 4096
7   bln = pdf.BatchConvert("C:\TEST.html")
8   if bln = True then msgbox "Successful"
9   pdf.FileNameOptions = 0


In this code I am generating PDF from HTML file as per your guidance.
and It is working fine.

But If I use Document file to convert PDF then it is not converting
document file in to pdf .

How I can convert other type to pdf.

I have just change line number 7 like following

Code: Select all

    pdf.DefaultFileName = "C:\TEST.HTML"
Changed to

Code: Select all

     pdf.DefaultFileName = "C:\TEST.DOC"
I have removed the defaultfilename because If we check the checkbox
on printer dialog box ie. Print to file then it ask for filename and in the
conversion of the html to pdf it is really working fine

Please tell me where I am going wrong.

Waiting for replay
It will better If you give Snippets for following Conversion

(ie for DOC to PDF , RTF to PDF, XML to PDF )


:?
Kamlesh Gujarathi
---------------------------
kamlesh@itshastra.com
Post Reply