Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
|
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 14th, 2004, 04:38 AM
Authorized User
 
Join Date: Jul 2004
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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!!!!!'


 
Old September 10th, 2006, 06:15 AM
Registered User
 
Join Date: Sep 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to PauloMoreno
Default

Hi,

Do you resolve this problem ? How ?
I'm with the same problem ...

Thanks for help





Similar Threads
Thread Thread Starter Forum Replies Last Post
Exporting to HTML Tachyophan Access 0 August 14th, 2006 02:30 AM
Error exporting using bcp Pallen SQL Server 2000 0 July 29th, 2006 04:56 AM
exporting error Bhavin Crystal Reports 0 December 27th, 2004 11:44 AM
error exporting as quicktime Adam H-W Flash (all versions) 1 March 2nd, 2004 10:41 AM
Dynamically exporting the report to HTML sara123 Crystal Reports 0 August 8th, 2003 12:11 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.