We have just upgraded to the latest version of the PDF Convertor.
We used to use the following FoxPro code to create a PDF Printer:
#DEFINE nofileprompt 1 && do not prompt for file name
#DEFINE usefilename 2 && use file name set by SetDefaultFileName else use document name
#DEFINE concatenate 4 && concatenate files, do not override
#DEFINE disablecompression 8 && disable page content compression
#DEFINE embedfonts 16 && embed fonts used in the input document
*// Set default to dir containing pdf dlls etc.
SET DEFAULT TO (THIS.appdir)
SET PATH TO (THIS.reportdir)
DECLARE LONG PDFDriverInit IN "PdfIntf.dll" STRING Printername
DECLARE LONG PDFDriverEnd IN "PdfIntf.dll"
DECLARE LONG SetDefaultDirectory IN "PdfIntf.dll" STRING DirName
DECLARE LONG SetDefaultFileName IN "PdfIntf.dll" STRING FileName
DECLARE LONG SetFileNameOptions IN "PdfIntf.dll" INTEGER Options
=pdfdriverinit(THIS.printername)
=setdefaultdirectory(THIS.pdfdir)
=setdefaultfilename(THIS.pdfdir + THIS.filename)
=setfilenameoptions(nofileprompt + usefilename)
SET PRINTER TO NAME (THIS.printername)
However, the file PdfIntf.dll no longer exists in your current distribution of the PDF Convertor.
How do we do the equivalent of the above?
Regards.
Matt.
Equivalent to PdfIntf.dll
You can use CDIntf.dll or FLLIntf.fll instead.
Please note that you will need to add a call to EnablePrinter right before printing to make your code work using the new version.
Please check our VFP Technical note for more information: http://www.amyuni.com/en/support/technotes.html
Hope this helps
Please note that you will need to add a call to EnablePrinter right before printing to make your code work using the new version.
Please check our VFP Technical note for more information: http://www.amyuni.com/en/support/technotes.html
Hope this helps
With the previous version, we created the PDF printer with our installation routine, and then selected that printer in our foxpro application before printing the report.
Can the call to enableprinter be called in our installation routine, or would we have to make this call just before we print.
It isn't clear to me how we would call enableprinter when the printer has already been created.
Regards.
Matt.
Can the call to enableprinter be called in our installation routine, or would we have to make this call just before we print.
It isn't clear to me how we would call enableprinter when the printer has already been created.
Regards.
Matt.
Hello Matt,
The Developer's version of the PDF Converter which is the version of the product you are planning to use, functions in a slightly different manner than the previous version.
This version of the product requires that developers must programmatically enable the PDF Converter printer each time before they send any output to it. This is done by calling the EnablePrinter() function from within their application and passing it the "Licence to" and "activation code" which is found in the install.ini file in the installation directory.
The EnablePrinter() was designed to start generating a PDF document from within 20 seconds of being called. If the printer does receive a print job to process within this timeframe, it will timeout and the EnablePrinter() must be called again. You would just need to call this function right before you call the REPORT FORM
In the situation where this call is not made, the printing process will fail.
I suggest that you take a look at our technical note TN03a from the link below for more information on how to implement this version.
http://www.amyuni.com/en/support/technotes.html
Hope this helps?
The Developer's version of the PDF Converter which is the version of the product you are planning to use, functions in a slightly different manner than the previous version.
This version of the product requires that developers must programmatically enable the PDF Converter printer each time before they send any output to it. This is done by calling the EnablePrinter() function from within their application and passing it the "Licence to" and "activation code" which is found in the install.ini file in the installation directory.
The EnablePrinter() was designed to start generating a PDF document from within 20 seconds of being called. If the printer does receive a print job to process within this timeframe, it will timeout and the EnablePrinter() must be called again. You would just need to call this function right before you call the REPORT FORM
In the situation where this call is not made, the printing process will fail.
I suggest that you take a look at our technical note TN03a from the link below for more information on how to implement this version.
http://www.amyuni.com/en/support/technotes.html
Hope this helps?