New PDF instructions

Coordinator
Dec 22, 2012 at 3:08 PM
Edited Dec 22, 2012 at 3:13 PM

For AVFP 6/5.52:

NOTE: The GhostScript  file, gsdll32.dll, is now included with AVFP, as is the project source  for PDFRun.exe – all in the Reports directory.

  1.  Register PDFRun.exe <Full path of pdfrun.exe file> /RegServer 
    (e.g. C:\Program Files\dotComSolution\AVFPdemo6\pdfrun.exe /RegServer) 
    OR just compile the PDFRun project
  2.  Run DCOMCNFG (For Win 7 or above use mmc comexp.msc /32).  Find PDFrun.Print2PDF. Under the Security tab for PDFRun.Print2PDF, add Custom Access and Custom Launch permissions for the IUSR, IWAM, and ASPNET accounts.  Under the Identity tab for PDFRun.Print2PDF, make sure the Interactive user is selected.
  3.  Install one of these Printer Drivers from the regular Windows ‘Add Printer’ panel according to OS version: 
    Xerox Phaser 6120 PS (Win 7 or above) 
    Xerox Phaser 1235 PS (Vista) 
    Apple Color LW 12/660 PS (Win 2003 Server)
  4.  In PDF.avfp (or PDF.htm), you'll need to add this property to the oPDF object like:
<%

oPDF=CREATEOBJECT("pdfrun.print2pdf")

if isnull(oPDF)

       return .f.

endif

oPDF.cPSColorPrinter ="Xerox Phaser 6120 PS"         && or whichever driver installed

...

 


  

Dec 25, 2012 at 2:48 PM

Where can I download ActiveVFP 6.0 / 5.52 ?

 

Thanks

Coordinator
Dec 25, 2012 at 5:42 PM

I'm preparing it right now.... should be a matter of hours.

Coordinator
Dec 25, 2012 at 6:14 PM
Edited Dec 25, 2012 at 6:15 PM

NOTE:  On Vista, I only had to add permissions for IIS_IUSRS in DCOMCNFG so:

Under the Security tab forPDFRun.Print2PDF, add Custom Access and Custom Launch permissions for IIS_IUSRS 

Dec 26, 2012 at 2:26 PM
Edited Dec 26, 2012 at 2:26 PM

Report after install AVFP 6 on Windows Server 2008 R2 64 bit

 

1. When I access "http://192.168.0.99" from browser it show:

Caught .NET exception, source: MAIN.PRG 00004zl5002m err#= 1 line= 95 File does not exist.1 File does not exist. .NULL. .NULL. .NULL. .NULL. .NULL. C:\avfp6\activevfp.dll message: C:\avfp6\activevfp.dll

( But If I access "http://192.168.0.99/default.avfp" it work fine. )

 

2. When I access "http://192.168.0.99/hello.php" it show: 

hello world from PHP version  

Hello from

( Does not show Version, Date, Time and PHP )

 

3. When I access "http://192.168.0.99/hello.aspx" it show:

Caught .NET exception, source: HELLO.ASPX mergescript err#= 10 Syntax error. Compilation Error: Syntax error in the script (HELLO.ASPX)that was called. 10 Syntax error. .NULL. .NULL. .NULL. .NULL. .NULL. C:\avfp6\activevfp.dll message: C:\avfp6\activevfp.dll

 

4. When I access "http://192.168.0.99/pdf.avfp" it show:

Caught .NET exception, source: PDF.AVFP 00004zl50038 err#= 1429 line= 21 OLE IDispatch exception code 1753 from gsconvertfile err#= 1753line= 995 Cannot load 32-bit DLL gsdll32.dll.: c:\avfp5.61demo\reports\pdfrun.exe..1429 OLE IDispatch exception code 1753 from gsconvertfile err#= 1753line= 995 Cannot load 32-bit DLL gsdll32.dll.: c:\avfp5.61demo\reports\pdfrun.exe.. c:\avfp5.61demo\reports\pdfrun.exe gsconvertfile err#= 1753line= 995 Cannot load 32-bit DLL gsdll32.dll. 0 1753 C:\avfp6\activevfp.dll message: C:\avfp6\activevfp.dll

 

Please help.

Best regards

Coordinator
Dec 26, 2012 at 5:04 PM

Well you need to get it to work first before you worry about  PDFs

How did the installation go?  Did it pop up the default screen at the end?

You say you're trying to access "http://192.168.0.99?  Normally you install to a virtual directory like http://192.168.0.99/avfp6demo or something like that.  So I'm not sure what you're doing..

The important thing before you install is to make sure you have the basic requirements:  IIS installed, ASP and ASP.NET enabled which it also checks for in the installation.

Coordinator
Jan 4, 2013 at 2:47 PM

Claude,

After the PDF was created and the user closed the browser, how do you clean up your TEMP folder?  What I mean is how do you delete those created PDF's under the TEMP folder?

Jan 4, 2013 at 2:51 PM

Thank you very much for your response, claudefox.

I resolve the problem by delete the installation folder and extract the zip file to the new one.

Then add application pool and web site in IIS. Bingo! it works great include the PDF report.

Coordinator
Jan 4, 2013 at 3:01 PM

Thanks for letting me know you resolved this!!

Coordinator
Nov 7, 2013 at 6:15 PM
After the PDF was created and the user closed the browser, how do you clean up your TEMP folder? What I mean is how do you delete those created PDF's under the TEMP folder?
The folder is checked, each time a report is run, for PDFs older than a specified date. Those files are then deleted. The programmer just sets a parameter on the method/function call.
Nov 15, 2013 at 2:03 PM
Hi,

After running print2pdf.prg in Command window in VFP IDE, I've notice that gsdll32.dll remains locked.
Can u check that.

Thanks.