|
-
Jan 14th, 2007, 04:22 AM
#1
Thread Starter
New Member
VB6 Crystal Report8 - View report problem
Hi,
I have visual Basic6 and Seagate Crystal Report version 8
I have two big projects thier method is just producing reports...
to know the problem which I will describe now... I created new simple program
just one command to run crystal report...
I used two components:
1) CRViewer
2) CrystalReport
The problem is my two big project is using the first component
and The amazing thing is that the simple program is working with programmar
but it is not working in the user side (just when using the first component
side it is not working for some users without any error or worning messages just NO RESPONCE when I click the bottun... )
here is the code:
'-------
Private Sub Command1_Click()
Dim crpRep As CRAXDRT.Report
Dim crpApp As CRAXDRT.Application
Set crpApp = New CRAXDRT.Application
Set crpRep = crpApp.OpenReport("s:\testwaseem.rpt")
CrystalReport1.Reset 'First component (not working)
CrystalReport1.ReportFileName = "s:\testwaseem.rpt"
CrystalReport1.Destination = crptToWindow
CrystalReport1.WindowState = crptMaximized
CrystalReport1.PrintReport
CRViewer1.ReportSource = crpRep 'second component (working)
CRViewer1.ShowNextPage
CRViewer1.Visible = True
CRViewer1.ZOrder 0
CRViewer1.ViewReport
CRViewer1.PrintReport
End Sub
'--------------------
PICs...
http://www.geocities.com/w_almohsin/11.bmp
http://www.geocities.com/w_almohsin/22.bmp
http://www.geocities.com/w_almohsin/12.bmp
any Idea... Please help...
Regards,
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
|