Hi,
We are currently using the Amyuni PDF converter 2.51 to print word documents to PDF.
This works well with Windows XP, 7, 2003 Server, 2008 Server.
In order for us to get ready with Windows 8, while testing our products for the compatibility we noticed that PDFs does not create with the Windows 8 Developer Preview.
OS used - Windows 8 Developer Preview 32 bit
MSOffice used – MS Office 2010
Programming language used - VFP9
Error description – PDF file gets created with 0 bytes.
Tried the following but it did not help to solve the problem.
=> Change the port assigned to the PDF printer to a local port, LPT1:, COM1, NUL:, to a newly created local port.
=> Tested with the latest trial version downloaded from the Amyuni website, 4.5.2.7
Following is a sample code we use which worked in previous version of Windows,
Please let know what can we can try further or any workaround.
#DEFINE pdf_AmyuniLicenseCompany "Amyuni PDF Converter Evaluation"
#DEFINE pdf_AmyuniLicenseCode "07EFCDAB0100010025AFF1806CB8441306C5739F7DC52654D393BA9CECBA2ADE79E3762A64FFC3540A8A5F4A5811BE3204A0A439F5BA"
*oPDFPrinter = CREATEOBJECT("CDINTFEX.CDINTFEX") && for Amyuni 2.50
oPDFPrinter = CREATEOBJECT("CDIntfEx.CDIntfEx.4.5") && for Amyuni 4.5
** Windows Default Printer and VFP printer is set to the PDF printer
oPDFPrinter.DriverInit("PDFPrinter")
oPDFPrinter.DefaultFileName = SYS(5) + ADDBS(SYS(2003)) + "Output.pdf"
oPDFPrinter.FileNameOptions = 1 + 2
oWord = CREATEOBJECT("Word.Application")
oWord.Documents.Open(SYS(5)+CURDIR()+"Print.doc",,.T.)
oWord.ActivePrinter = "PDFPrinter"
oPDFPrinter.EnablePrinter(pdf_AmyuniLicenseCompany, pdf_AmyuniLicenseCode)
oWord.ActiveDocument.PrintOut() && Output.pdf gets created with 0 bytes
oWord.Quit()
