Hi
I am using crystal reports10, a billing report which has subreports. when i export to pdf only the main report gets exported subreport does not show in the pdf. please help me with this.Please provide more information.
If you provide a complete description in your posts, you are more likely to get prompt and accurate data.
So............how are you exporting? From the CR File menu? Or do you have an application which calls the reports?
Can you view the report and see the subreports in the CR IDE?
What database are you connecting to, and by what method (native connection, ODBC etc)??
This is the sort of information which, if provided as part of the initial question, better enables other users to assist.
Dave|||Hi, Try this
How did you export the report thru CR or VB application? If you are using VB Application use this code
Dim Crapp As New CRAXDRT.Application
Dim CrRpt As CRAXDRT.Report
Set CrRpt = Crapp.OpenReport(ReportPath)
CR.ReportSource = CrRpt
CR.EnableExportButton = True
CR.RefreshEx True
CrRpt.ExportOptions.FormatType = crEFTWordForWindows
CrRpt.ExportOptions.DestinationType = crEDTDiskFile
CrRpt.ExportOptions.DiskFileName = "D:\export.doc"
CrRpt.Export (False)
This will export reports(Including all the subreports to Word)
Madhivanan
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment