General information
Category:
COM/DCOM and OLE Automation
Sebastian,
I create pdf's as well from a VFP7-comserver and I do the following:
- create a postscript file when printing your report (select a postscript
printer and save the file, it should be a postscipt file)
- do the following;
loDistiller = NEWOBJECT("PdfDistiller.pdfdistiller.1") && I use Distiller
to create the pdf-file
IF FILE(cpsfilename)
lodistiller.filetopdf(cpsfilename, cpdffilename, '')
* delete the input ps-file!
DELETE FILE (cpsfilename)
ENDIF
This converts a postscript file to a pdf-file. I do this in a VFP-com object running on a W2K-server with Adobe Acrobat Distiller installed and it works great with VFP-reports.
Hope this helps,
ROon Brahma
>Hi, folks!
>
>I tried to follow all given guidelines from UT and other sources to bring PDF report output created by VFP to work - BUT IT DOES'NT WORK.
>
>- Using my well(?) DCOM registered outproc EXE due to CREATEOBJECT() from the VFP command window - all is fine and I get my PDF created by the REPORT FORM TO command in the outproc exe.
>
>- Calling this outproc EXE from an InProc DLL within IIS (called by an ASPX site) don't work!
>
>- If I select "starting user" at the identity page in DCOMCNFG then my OutProc exe starts and works well except the REPORT FORM TO FILE command which should create a PDF file using Acrobats PDF Writer - the EXE file hangs so hardly, only machine shutdown helps!
>
>- If I'm going the same way using any other printer driver - all is fine (except the created file contains no PDF format <s>)!
>
>- In my last trial I tried to follow the hint "use 'interactive user' (first option) at the identity tab in DCOMCNFG" - but in this case my OutProc EXE don't start: CREATEOBJECT returns no valid object reference, but I can see the EXE file in the process tab of the taskmanager - and I can kill it using the task managers "terminate process" button!
>
>
>Any ideas - any hints?
>
>
>BTW: I'm using W2K/prof SP3, VFP7 SP1, Acrobat4.05!
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only