|
-
Sep 25th, 2008, 06:54 AM
#1
Thread Starter
Addicted Member
Crystal Report 10
I am trying to print a report using the report viewer automatically without having to view it first with the following code.
Code:
Dim presNum As String
Dim Appl As New CRAXDRT.Application
Dim report As New CRAXDRT.report
Set report = Appl.OpenReport("..\..Report.rpt")
report.ParameterFields.GetItemByName
CrystalActiveXReportViewer1.ReportSource = report
CrystalActiveXReportViewer1.DisplayGroupTree = False
CrystalActiveXReportViewer1.Refresh
CrystalActiveXReportViewer1.PrintReport
problem is the PrintReport method is giving the following error
Method 'PrintReport' of object 'ICrystalReportViewer10' failed
i have been stuck on this for two days now. i need help.
-
Sep 25th, 2008, 06:56 AM
#2
-
Sep 25th, 2008, 09:47 AM
#3
Re: Crystal Report 10
If you don't want to display the report why use the Viewer?
Simply call the PrintOut method of the Report object.
-
Sep 25th, 2008, 10:15 AM
#4
Thread Starter
Addicted Member
Re: Crystal Report 10
thank you very much brucevde. not only did it work but it made a lot of sense when you said it. i truly appreciate it
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
|