Quantcast
Channel: SCN : Discussion List - SAP Crystal Reports, version for Visual Studio
Viewing all articles
Browse latest Browse all 3636

Crash while exporting report

$
0
0

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.


Viewing all articles
Browse latest Browse all 3636

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>