|
-
Jun 20th, 2000, 11:11 AM
#1
Thread Starter
Hyperactive Member
More or less, I have the following code:
Sub Command1_Click
CR.ReportLayout = .....
CR.Action = 1
Unload Me
End Sub
in my visual basic, whenever I run it, it has the Crystal Report preview window flash and then the program (include the preview window) terminated.
How I can display the preview window, and until the user close the preview, and then my vb unload the form(end the program)
Thanks
-
Jun 20th, 2000, 01:30 PM
#2
Hmmm....interesting problem
For sure the "Unload Me" is causing your problem. Strange but it would appear the crystal report window is a subset of the calling vb routine...not independant.
Why do you want to cancel out after showing the Crystal Window. Perhaps you could allow the user the option of reporting with different criteria....just a suggestion
-
Jun 20th, 2000, 01:37 PM
#3
Thread Starter
Hyperactive Member
The purpose of the program is to enter parameter, and then display the preview window. After user view the report, they can print or close it. Upon close preview, the program should also be terminated.
One more peculiar, it used to work, but I don't know why. I don't know which option or attributes I have set wrongly, so that this happen.
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
|