none
VFP 8.0 and Acrobat PDF Writer

    Question

  • Hi,
    We have an application developed in VFP 8.0. Our clients are having a problem while printing reports to normal printer AFTER they have printed to an Acrobat PDF writer and created a PDF file. The reports print fine when they send it to a normal printer without sending it to a PDF writer. Subsequent to sending it to a PDF writer and creating a PDF file, the reports throw an error saying "File Not Found" when printed to a normal printer.
    This problem does not appear if the clients create and save the PDF in the same directory from where our application runs.
    Can anyone let us know the reason for this?
    Thanks in advance.
    BABS
    Wednesday, August 17, 2005 10:25 PM

Answers

  • I *think* Adobe changes the current dir when it saves the file to disk. Try the following:

    LOCAL lcCurDir AS String
    lcCurDir = SYS(5) + SYS(2003)
    REPORT FORM yourreport TO pdfwriter
    CD (lcCurDir)
    REPORT FORM yourreport TO PRINTER PROMPT

    Thursday, August 18, 2005 12:34 PM

All replies

  • I *think* Adobe changes the current dir when it saves the file to disk. Try the following:

    LOCAL lcCurDir AS String
    lcCurDir = SYS(5) + SYS(2003)
    REPORT FORM yourreport TO pdfwriter
    CD (lcCurDir)
    REPORT FORM yourreport TO PRINTER PROMPT

    Thursday, August 18, 2005 12:34 PM
  • YO ERIC!!! U were right! It worked!
    Thanks a lot!
    BABS
    Monday, September 19, 2005 8:38 PM