problem with amyuni creator/converter

If you are a VFP developer and have any questions about using our products from VFP here is the place to post them.
Post Reply
sven
Posts: 2
Joined: Thu Mar 04 2004

problem with amyuni creator/converter

Post by sven »

My code :

pdf1 = createobj("cdintfex.cdintfex")
pdf1.driverinit("Amyuni PDF Converter")
set printer to name "Amyuni PDF Converter"
&&pdf1.lock("c:\ebts\reports\nedlet.frx")
pdf1.setdocfileprops("c:\ebts\reports\nedlet.frx", 3, "", "c:\visage\test.pdf")
pdf1.EnablePrinter("Amyuni Technologies", "07EFCDAB010001006DB296EE0ED6E0A54438C86D918D754B48B021AE966094B55668542E35F2831E0D7A98FC91D91894269D9A98BD0E5511061E90194FEA76419DED3CDC29BE1E58198239CFF6442F29DCAE9932CE77BEAD3E68713E9D08C671B23826")
use data\docs in 0

use cases in 0
use contractors in 0
sele docs

repo form reports\nedlet noeje nocons to print


Last line "repo form reports\nedlet...." gives : error accessing printer spooler

System : Windows XP SP1 UK
VFP 6 UK
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

Are you calling EnablePrinter right before printing starts? If not please do so.

Thanks.
sven
Posts: 2
Joined: Thu Mar 04 2004

error accessing printer spooler

Post by sven »

No that is not the problem.

When I try to print a test page, I also receive an error..

I don't know why the AMyuni PDF printer won't work on my system...

And I want to try it out...

PS: is lpt1 needed, or can I create another port ? Which one ?
I am using Win XP Pro with SP1
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

I notice in your code that you are commenting the call to the lock function.

Please note that if you are not using the lock function of CDintfEx you need to replace SetDocFileProps by the call to FileNameOptions.

Please download our VFP technical note containing a VFP sample from: http://www.amyuni.com/en/support/technotes.html

I am not sure which version of the PDF Converter you are using, our latest version of the PDF Converter installs the PDF Printer on the first available port, also our latest install utility allows you to specify the port to which you want to install the driver.

Hope this helps, if you need further information please feel free to contact our Support Department support@amyuni.com.
Post Reply