|
-
September 17th, 2002, 11:06 PM
#1
crystal report
Hi
i am facing problems printing the report in visual basic.
i am using the crystalreport ocx to print report to the window.
just as it is printing to window the window closes. i am not able to get any errors also.
i tried setting the properties through codes yet the result is same
CrystalReport2.ReportFileName = App.Path & "\Report.rpt"
CrystalReport2.Destination = crptToWindow
CrystalReport2.Action = 1
can you tell me is there any settings .i have used the similar way for other reports but is fine.
thanks
roopa
-
September 17th, 2002, 11:52 PM
#2
Load the crystal report and refresh it again.
I also had this probelm after changing the database format.
Normally I use CR like this.
CrystalReport1.ReportFileName = App.Path & "\VerReImpsli.rpt"
CrystalReport1.DataFiles(0) = mPath & "\database.mdb"
CrystalReport1.ReportTitle = "Report Title"
CrystalReport1.Destination = crptToWindow
CrystalReport1.Formulas(0) = "User =' User Id " & gV_LogOnUserId & "'"
CrystalReport1.WindowState = crptMaximized
CrystalReport1.WindowLeft = 0
CrystalReport1.WindowTop = 0
CrystalReport1.Action = 1
-
September 18th, 2002, 12:08 AM
#3
report
hi
though i see the window again closes sameas before
Still no difference
thanks
roopa
-
September 18th, 2002, 12:10 AM
#4
Did u load the CR in the crystal report viewer and refresh it.
what is the database u r using.
MS ACCESS or SQL Server
-
September 18th, 2002, 12:15 AM
#5
i am not using the CRviewer instead using the Crystal report control. even CRViewer i was having problems since even though i refresh the data is not refreshing. At times getting errors like
"Control is busy downloading data". so i changed to Crystal report control
i am using access 97.
thanks
-
September 18th, 2002, 12:19 AM
#6
So how did u design your report.
Are u sure the database format u used for design crystal report as same as the database u have now.
Can u attached the crystal report and the database here I can check that for u
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
|