|
-
Aug 18th, 2008, 02:11 PM
#1
Thread Starter
Hyperactive Member
[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?
-
Aug 18th, 2008, 11:48 PM
#2
Thread Starter
Hyperactive Member
Re: [RESOLVED] Error message in Crystal 8
There simply is not enough participation in this area.
-
Aug 19th, 2008, 07:43 PM
#3
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|