Last post Oct 25, 2012 01:36 AM by Ajay2707
Oct 23, 2012 08:57 AM|aspfun|LINK
I used code below to display and print crystal report, it works fine.
Now, new report has a sub report. How to add some code to works with?
ExpOptions.ExportFormatType = ExportFormatType.PortableDocFormat
ExpOptions.FormatOptions = New PdfRtfWordFormatOptions
Dim req As New ExportRequestContext
req.ExportInfo = ExpOptions
Dim s As Stream
s = Rpt.FormatEngine.ExportToStream(req)
Response.ContentType = "application/pdf"
Dim buffer(s.Length) As Byte
s.Read(buffer, 0, Int(s.Length))
Oct 24, 2012 10:36 AMemail@example.com|LINK
I hope, you do not required to write addition code to export subreport
Oct 25, 2012 01:36 AM|Ajay2707|LINK
You don't need to for export option for subreport. Additionaly you just give the credential to your subreport (its not compulsory).
Whenever main report hit. automatically subreport call and get fetch the data as per linking.
And when you export it export as a whole one report.