on 07-30-2014 7:20 PM
Hi
I am using below code snippet to export the report using new crytsal 13 RAS API. It works fine except for one case. If I apply background and foreground color code to column headers, export function crashes and kills the process too without raising any error or exception.
Dim destOptions As DiskFileDestinationOptions = CrystalDecisions.Shared.ExportOptions.CreateDiskFileDestinationOptions()
destOptions.DiskFileName = filePath
Dim exportOptions As New ExportOptions()
exportOptions.ExportDestinationType = ExportDestinationType.DiskFile
exportOptions.ExportDestinationOptions = destOptions
exportOptions.ExportFormatOptions = formatOptions
exportOptions.ExportFormatType = CrystalDecisions.Shared.ExportFormatType.CrystalReport
' Export the report
report.Export(exportOptions)
portOptions.ExportFormatType = format.Type
I am not sure what is wrong with above code after applying color code.
One more point, after applying color I can preview report using crystal report viewer but can't export it. Even if i try to export it from crystal report viewer after previewing the report, there also same crash is observed.
A bit of missing info:
What version of CR? Please be precise.
What version of VS .NET?
Exporting to CR only, or other export types result in the same issue?
Does the export work from the CR designer?
Can you attach the report - with saved data?
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
CR version: CRforVS_redist_install_32bit_13_0_9
VS.Net: Visual Studio 2010
DotNet Framework: 4.0
It crashes for all export formats. I have attached the report with saved data also.
Here it doesn't allow to attach the rpt format files. So, I have changed the extension from rpt to txt and attached the file. Kindly change the extension back to rpt before using the attached file.
Thanks for looking into it.
Saurabh
Hi Saurabh,
Are you sure that the attached report reproduces the issue?
I tried exporting it and works fine. See attached PDF (rename it to .pdf).
If this is the right report, then you need to get to CR for VS 2010 SP10, which works for me.
http://scn.sap.com/docs/DOC-7824
- Bhushan
Senior Engineer
SAP Active Global Support
Follow us on Twitter
Got Enhancement ideas? Try the SAP Idea Place
Getting started and moving ahead with Crystal Reports .NET applications.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.