|
-
Nov 8th, 2000, 03:03 PM
#1
Thread Starter
Member
Hi.
I hope my question is easy, however I need your help.
I have created VB aplication, which is using RDC to create
a report. It runs fine, but when I close it, it takes 10-15 seconds to unload the application.It is too long. What can I do to unload it instantly?
Here is my code:
Public Report As Report
Private Sub Form_Load()
Set Report = New Accident 'Accident - name of report
Me.Caption = Report.ApplicationName
Screen.MousePointer = vbHourglass
CRViewer.EnableGroupTree = False
CRViewer.ReportSource = Report
CRViewer.ViewReport
CRViewer.Zoom 100
Screen.MousePointer = vbDefault
Me.WindowState = vbMaximized
End Sub
Private Sub Form_Resize()
CRViewer.Top = 0
CRViewer.Left = 0
CRViewer.Height = ScaleHeight
CRViewer.Width = ScaleWidth
End Sub
Private Sub Form_Unload(Cancel As Integer)
Set Report = Nothing
End Sub
//Thank you.
Victor
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
|