Results 1 to 3 of 3

Thread: [RESOLVED] Windows 7 Dos error

  1. #1

    Thread Starter
    PowerPoster Pasvorto's Avatar
    Join Date
    Oct 2002
    Location
    Minnesota, USA
    Posts
    2,951

    Resolved [RESOLVED] Windows 7 Dos error

    I have an app that is VB6 and uses CR9. It is running on 2 different PCs, both running W7 SP1. Both have CR installed on them. Both have Adobe Acrobat Standard installed on them.

    The program calls a report that creates a PDF on drive c: and then emails to a number of people. When I run it on one PC, not problem. When I run it on the other PC I get

    An error occurred: [-2147206462] Dos error. - <followed by name of routine>

    It is failing on the line that runs the report

    Report.export False

    The lines prior are:

    Report.ExportOptions.FormatType = crEFTPortableDocFormat
    Report.ExportOptions.DiskFilename = "c:\setuplog.pdf"
    Report.ExportOptions.DestinationType = crEDTDiskFile


    Any ideas?
    ===================================================
    If your question has been answered, mark the thread as [RESOLVED]

  2. #2
    PowerPoster jdc2000's Avatar
    Join Date
    Oct 2001
    Location
    Idaho Falls, Idaho USA
    Posts
    2,526

    Re: Windows 7 Dos error

    Report.ExportOptions.DiskFilename = "c:\setuplog.pdf"
    Windows 7 may not allow you to place files in the root directory. Try a user folder that the logged in user has permission to write to.

  3. #3

    Thread Starter
    PowerPoster Pasvorto's Avatar
    Join Date
    Oct 2002
    Location
    Minnesota, USA
    Posts
    2,951

    Re: Windows 7 Dos error

    That was it! Great catch!
    ===================================================
    If your question has been answered, mark the thread as [RESOLVED]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width