|
-
Feb 10th, 2009, 03:48 AM
#1
[RESOLVED] DataReport object not closing?
Almost all my Datareports I display using the "Show" method so the user can decide if they want to print the report.
And everything is fine when I close the app. wether they print the report or not.
2 of my Datareports I use the "PrintReport" method
Code:
Datareport1.PrintReport
But when I'm in the IDE and I close the app after the "PrintReport", I have to use the IDE to manually stop the program.
If if switch the "printreport" to "show", everything shutsdown fine, even if I print the report. I'm guessing the the report object is staying open but there is no "close" method for the datareport.
I just recently stopped using "End" and I'd like to keep it that way.
Any help would be appriciated, Thanks
-
Feb 10th, 2009, 09:25 PM
#2
Re: DataReport object not closing?
Has anyone had any problems like this with "Printreport"?
-
Feb 11th, 2009, 10:53 PM
#3
Re: DataReport object not closing?
If anybody is interested the solution is putting "unload DataReport1" after the "PrintReport"
-
Jun 12th, 2012, 09:33 AM
#4
New Member
Re: [RESOLVED] DataReport object not closing?
Thank you for the solution.
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
|