 |
Ramya Level: Sage
 Registered: 08-04-2005 Posts: 60
|
Doubt with CR
Hai
I am using CR8.2 along with my vb project.
I need to do two things.
I need to save the crystal report output file to PDF at runtime.
I need to supply the filename for that PDF at the time of report generation from VB itself.
|
|
08-06-2005 at 10:59 AM |
|
|
Goran Level: Moderator
 Registered: 16-05-2002 Posts: 1681
|
Re: Doubt with CR
I use CR 9.2 (and I assume you also, and you made a typing mistake with 8.2). Look at the
Export and ExportProperties of CRAXDRT.Report object.
____________________________
If you find the answer helpful, please mark this topic as solved.
|
|
08-06-2005 at 02:08 PM |
|
|
Goran Level: Moderator
 Registered: 16-05-2002 Posts: 1681
|
Re: Doubt with CR
With rpt.ExportOptions
.FormatType = crEFTPortableDocFormat
.DestinationType = crEDTDiskFile
.DiskFileName = "c:\test.pdf"
End With
rpt.Export False |
where rpt is CRAXDRT.Report object.
____________________________
If you find the answer helpful, please mark this topic as solved.
|
|
09-06-2005 at 05:40 PM |
|
|
Goran Level: Moderator
 Registered: 16-05-2002 Posts: 1681
|
Re: Doubt with CR
CRViewer1.ReportSource = rpt
CRViewer1.ViewReport |
____________________________
If you find the answer helpful, please mark this topic as solved.
|
|
10-06-2005 at 07:07 PM |
|
|
Goran Level: Moderator
 Registered: 16-05-2002 Posts: 1681
|
Re: Doubt with CR
Remove refresh method, you dont need it.
____________________________
If you find the answer helpful, please mark this topic as solved.
|
|
11-06-2005 at 04:09 PM |
|
|
Ramya Level: Sage
 Registered: 08-04-2005 Posts: 60
|
Re: Doubt with CR
Is it true then why do we need that refresh method in CR.Then can u tell me as how to export a file to PDF i.e how to export crreport topdf
|
|
13-06-2005 at 12:42 PM |
|
|
Goran Level: Moderator
 Registered: 16-05-2002 Posts: 1681
|
Re: Doubt with CR
refresh is used when data from database is changed, so you want to rerfresh report to load actual data, or when you have changed some report object through code, and you want to update this change to be visible on the screen. No need to refresh CR since you have just loaded report. The error you have received is because CR was still not loaded, but you have tried to refresh it.
As for the exporting to PDF, I have exlpained you how in above posts.
____________________________
If you find the answer helpful, please mark this topic as solved.
|
|
13-06-2005 at 08:21 PM |
|
|
|
|
 |
 |