Need help to get me start

If you are a VB developer and have questions about using our products from VB, here is the place to post them.
Post Reply
Frank
Posts: 1
Joined: Thu May 29 2003

Need help to get me start

Post by Frank »

I was trying the vc++ version with the cdintf210.dll but got a link error in BatchConvertEx so I switch to VB. I'm trying to creating a simple VB program to try out this produce. The onlything I want to do is to convert word doc or rtf file to pdf file, don't need any GUI stuff. Here is my simple code right from the installation doc.

Dim cdi As New CDIntfEx.CDIntfEx
On Error GoTo printer_error
cdi.DriverInit "Amyuni PDF Converter"
bResult = cdi.SetDefaultPrinter
cdi.FileNameOptionsEx = NoPrompt
cdi.DefaultDirectory = "D:\Adstar\AmyuniTest"

cdi.EnablePrinter "Developer Pro Evaluation", "07EFCDAB010001000A8E993212686EF251F0149882C22720A96D46AA632D046DD64229B0989A28FC47CFD1981295249B80961849D9B54CE17181F18E7A5188ABCF2DB572E6215AD457D388DDDD5019DC852B3012034FFC48E6A6F468C7C7796CAB886B74F6202026"

'convert all MS Word documents to PDF format
lResult = cdi.BatchConvert("D:\Adstar\AmyuniTest\*.doc")

cdi.RestoreDefaultPrinter
cdi.DriverEnd

Got an error in BatchConvert and WSWORD popup with an error box saying driver probelem. Then VB will hang and can't abort. Even the taskmanager need a few minutes to abort VB.

I've tried reinstalling the driver but get the same problem. I've also change the driver printing properties to print to a file and MSWORD will pop up and ask for *.PRN files destination. After I entry the name, it will go back to the same driver problem and hang again.

Am I missing something during installation. Any help is appreciated.

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

Post by Joan »

Hello Frank,

Most probably you already get a reply from our Support department to this.

We have a small problem with the declaration in the cdintf210.h file.

Please replace the declaration of BatchConvertEx by :
long WINAPI BatchConvertEx( HANDLE hIntf, LPSTR szFileName );

We will fix this in our next release.

Have a nice day.
Post Reply