Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Has anyone use Amyuni PDF Converter?

Status
Not open for further replies.

Keepontrying

Programmer
May 12, 2003
67
US
I been trying to install the Amyuni PDF Converter and have been have a little trouble.

I need to be able to allow the user to print to their standard default printer or email the report to their corp office.

If I printed to the invoice printer and jump to the pdf printer I will get a "error loading printer driver" if I jump back to the laser printer now I get the same message.

I used the command
set printer to default when I finish with the pdf printer and It seem to make no different.

Here is my codes:

SET library to FLLINTF.FLL ADDITIVE
PDF = DRIVERINIT("pdf printer")
EnablePrinter(PDF,"Document Converter Demo","serial")
set printer to name "pdf printer"
report form invoice.frx noeject noconsole to printer
set printer to default


what else do I need to do

Thanks
John


 
Here is the code I use, I'm not sure if it will help:
Code:
SET LIBRARY TO "Fllintf.fll" ADDITIVE
PUBLIC NODUE
NODUE = 0
#DEFINE PRINTERNAME  "PDF Compatible Printer Driver"
#DEFINE NOPROMPTE             1
#DEFINE USEFILENAME           2
#DEFINE BROADCASTMESSAGES    32
#DEFINE ENABLEWATERMARKS     64

#DEFINE WFONTNAME          "Arial"
#DEFINE WFONTSIZE              70
#DEFINE WORIENTATION          450
#DEFINE WCOLOUR               255
#DEFINE WHORZPOS              200
#DEFINE WVERTPOZ             -200
#DEFINE WFOREGROUND           .T.
*
PDF=CREATEOBJECT("cdintf.cdintf")
SET PRINTER TO NAME PRINTERNAME

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Might it be that you aren't issuing the DRIVEREND( pdf )command? I believe this is the statement which releases the converter & restores the previous settings. The code I used was as follows, hope it helps.

* save default directory
SET LIBRARY TO "FllIntf210.fll" ADDITIVE

* Define PDF Converter "printer"

** initialize PDF printer
pdf = pdfdriverinit( "Amyuni PDF Converter" )
EnablePrinter( PDF, "company name.", "license stuffxxxxxx")

** Set output filename
defaultfilename( pdf, 'c:\pdf-folder\MYPDF.pdf')

filenameoptions( pdf, 1 + 2 + 32 + 64)

SET PRINTER TO NAME "Amyuni PDF Converter"

* Create PDF file
REPORT FORM reportname NOEJECT NOCONSOLE TO PRINTER

filenameoptions(pdf,0) && reset options

* Release PDF Converter and return old settings
driverend( pdf )

* back to default printer
SET PRINTER TO

 
Thank everyone for your respond:

On other thing I forget to mention. Several of my reports are landscrape. I use the the following command:

SetOrientation("pdf printer",2)

I get the error "detail band is too large to fit"

When printing to a printer it ok. Is the above command the correct syntax? what else do I need to look at

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top