Evaluation version of Document Converter Suite

If you are a VB developer and have questions about using our products from VB, here is the place to post them.
Post Reply
Krystyna
Posts: 17
Joined: Thu Jun 16 2005

Evaluation version of Document Converter Suite

Post by Krystyna » Tue May 09 2006

I successfuly created a sample pdf file with evaluation version of Document Converter Suite,
but when I try to generate other file formats I'm still getting pdf files,
only with diffrent file extensions.
What I'm missing?

Source code:
Const NoPrompt As Long = 1
Const UseFileName As Long = 2
Const ExportToHTML As Long = &H4000000
Const ExportToRTF As Long = &H8000000
Const ExportToJPEG As Long = &H10000000
Dim demoPrinter As CDIntfEx.CDIntfEx
Set demoPrinter = New CDIntfEx.CDIntfEx
demoPrinter.DriverInit "Amyuni Document Converter"
demoPrinter.PaperSize = vbPRPSLegal
demoPrinter.Orientation = vbPRORPortrait ' portrait
demoPrinter.DefaultDirectory = "c:\"
If Option1(0).Value = True Then 'pdf
demoPrinter.DefaultFileName = "c:\test.pdf"
demoPrinter.FileNameOptionsEx = NoPrompt + UseFileName
ElseIf Option1(1).Value = True Then'tiff
demoPrinter.DefaultFileName = "c:\test.tif"
demoPrinter.FileNameOptionsEx = ExportToJPEG + NoPrompt + UseFileName
ElseIf Option1(2).Value = True Then'rtf
demoPrinter.DefaultFileName = "c:\test.rtf"
demoPrinter.FileNameOptionsEx = ExportToRTF + NoPrompt + UseFileName
ElseIf Option1(3).Value = True Then'html
demoPrinter.DefaultFileName = "c:\test.htm"
demoPrinter.FileNameOptionsEx = ExportToHTML + NoPrompt + UseFileName
End If
demoPrinter.EnablePrinter "Converter Evaluation Developer", _
"07EFCDAB010...41E8CA37A0737DF60492E"
Printer.Print "testing"
Printer.EndDoc
demoPrinter.FileNameOptions = 0
demoPrinter.DriverEnd
Set demoPrinter = Nothing

Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan » Wed May 10 2006

Hello,

In your case the output file name should always have a .pdf extension, when you add an export option two files will be generated instead of one a .pdf and a .html by example.

hope this helps.

Krystyna
Posts: 17
Joined: Thu Jun 16 2005

problem solved

Post by Krystyna » Wed May 10 2006

I have full version of Amyuni PDF Converter developer version installed on the same computer and after installing a new demo driver with a new version somehow my test program still was invoking full Version of PDF Converter even program was referencing new driver with a diffrent name and was passing an evaluation license key. After uninstalling driver and rebooting computer I'm getting evaluation box, evaluation watermark and other files then pdf.

Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan » Fri May 12 2006

Hello,

Did you check that the demo driver is completely unistalled. Aslo are you sure that the release version you have and the demo version you installed install each a different driver?

Post Reply