Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Print to PDF exe
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
ActiveVFP
Divers
Thread ID:
00875422
Message ID:
00875836
Vues:
14
Thanks for the reply Claude. I finally got my pdf exe to work in conjunction with the vfp mtdll.
Einar

>If this is Win2k Server, then it may be a security thing. If you made all of those changes in Dcomcfg that I mentioned, then you might want to reboot and see if it works. There was someone a while back in one of the other vFP categories who was running Amyumni in a vfp MTDLL IF you want to search for it. Other than that, I guess you could try running under COM+...
>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform