Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print to PDF exe
Message
General information
Forum:
Visual FoxPro
Category:
ActiveVFP
Miscellaneous
Thread ID:
00875422
Message ID:
00875659
Views:
22
Claude,
Well here is the status. After registering (prntpdf.exe /regserver) and configuring DCOMCNFG I don't get the error anymore, but the page just hangs.
I know the createobject() function worked bacause I added a little strtofile() in the init() for the class that adds some text to a txt file with a timestamp. But after the init() I don't think anything happends.

Here is the code from the vfp mtdll:
loPrntPdf = CREATEOBJECT("prntpdf.prntpdf")
lnRetVal = loPrntPdf.PrintToPdf(tcPdfFile,tcFrxFile,tcDbfFile)
The acctual printing to a pdf file is done in the PrintToPdf() method.

I can see that PrntPdf.exe is running in the taskmanager on the web server.

If you have any hints regarding this i would appreciate it.

Sincerely,
Einar

>You need to use DCOMCNFG to set up the .EXE server called from the MTDLL. You must run DCOMCNFG on PDFrun.AVFPpdf or whatever your EXE server is prior to using it. Under DCOMCNFG Security, add Custom Access and Custom Launch permissions for the IUSR, IWAM, and ASPNET accounts. You may need to register too, in which case just use regsvr32.
>Is your web server Win2k Server? Are you still using Print2PDF?
>
>>I have deployed my VFP mtdll to the webserver. When I was running this on localhost I had not problems with the following command:
>>
>>loPrntPdf = CREATEOBJECT("prntpdf.prntpdf")
>>
>>PrntPdf.exe is located in the same directory as the vfp mtdll.
>>The only class defined in PrntPdf.exe is called PrntPdf.
>>
>>I get the following error in my web browser:
>>
>>icreatepdf err#= 1733 line= 1718
>>Class definition PRNTPDF.PRNTPDF is not found.
>>1733 Class definition PRNTPDF.PRNTPDF is not found.
>>PRNTPDF.PRNTPDF .NULL. .NULL. .NULL. .NULL.
>>
>>
>>What could possible cause this?
>>Execute rights? Class not registered? (How would I do that?) Problems with class definition?(but why does it work on localhost?)
>>
>>Any help is appreciated.
>>
>>Thanks,
>>Einar
Semper ubi sub ubi.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform