Error while exporting to html
Hi..
Am displaying a chart in crystalreport using asp.net. On execution, the chart is not displayed properly. Hence am trying to export the report to html. But am getting the following error:
CrystalDecisions.CrystalReports.Engine.InvalidArgu mentException: Invalid export options
The code goes like this:
After binding the report to viewer, i call the exportReport() which
is given below:
Dim htmlOpts As New HTMLFormatOptions
Dim exportOpts As New ExportOptions
Dim diskOpts As New DiskFileDestinationOptions
htmlOpts.HTMLFileName = "hello.html"
htmlOpts.HTMLEnableSeparatedPages = True
htmlOpts.HTMLHasPageNavigator = True
obj1.ExportOptions.FormatOptions = htmlOpts
diskOpts.DiskFileName = "hello.html"
obj1.ExportOptions.DestinationOptions = diskOpts
obj1.ExportOptions.ExportDestinationType = ExportDestinationType.DiskFile
obj1.ExportOptions.ExportFormatType = ExportFormatType.HTML40
obj1.Export()
Anyone there to help??????? My project deadline is nearing.
PLEASE HELP!!!!!'
|