Export Crystal Report to HTML Document using C# and VB.Net in Windows Application

Last Reply 6 months ago By dharmendr

Posted 6 months ago

I want to Export Crystal Report Data to HTML Documents format

When I click the button the present report should export to HTML Documents format with a specific name.

I want to do it on Desktop applicantion

    Private Sub btnPrintDoc_Click(sender As Object, e As EventArgs) Handles btnPrintDoc.Click
        Dim myReportDocument As New BGLBillBck
            Dim selectedReport As New ReportClass
            Dim CrFormatTypeOptions As New HTMLFormatOptions
            CrFormatTypeOptions.HTMLBaseFolderName = "C:\Users\Administrator\Desktop\html\New folder"
            CrFormatTypeOptions.HTMLFileName = "htmlformat.htm"
            Dim CrExportOptions As ExportOptions
            CrExportOptions = myReportDocument.ExportOptions
            With CrExportOptions
                .ExportFormatType = ExportFormatType.HTML40
                .FormatOptions = CrFormatTypeOptions
            End With
        Catch ex As Exception
        End Try
    End Sub


This question does not have replies that have been liked.