Results 1 to 3 of 3

Thread: [RESOLVED] Error message in Crystal 8

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2008
    Posts
    325

    Resolved [RESOLVED] Error message in Crystal 8

    When I try to use the following crystal statements in my vb6 form, I get an error message:

    Run-time error '91':
    Object variable or With block variable not set


    Code:
    Report.ExportOptions.DestinationType = crEDTDiskFile
    Report.ExportOptions.DiskFileName = "C:\test.txt"
    Does anyone know why?

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2008
    Posts
    325

    Re: [RESOLVED] Error message in Crystal 8

    There simply is not enough participation in this area.

  3. #3
    Hyperactive Member
    Join Date
    Jul 2007
    Posts
    479

    Re: [RESOLVED] Error message in Crystal 8

    I did a quick google search and found the same error message in Access, Excel, and VB. Problems indicate exporting, printing in landscape, etc. Mostly the answers dictate setting breakpoints and tracking when the error hits and checking the order of setting commands. eg. for the landscape issue, set the orientation before issuing the print command. I don't know the exact error reason but it usually indicates a problem with code above the line when I have seen it.

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