Link to home
Start Free TrialLog in
Avatar of akoIT
akoIT

asked on

What is the best report viewer for Crystal Reports in ASP.Net using vb.net/C#

Hello Guys,

Can I have a helping hand for this.,
I have a Crystal Report files that I want to view everytime the user clicks the generate button.

here is my code....

Note that I currently exporting my report file into a PDF file using this...
Dim rptBlank As New Report Document
rptBlank As New report_Sample (Sample_ReportFile.rpt = Crystal Report File)

With rptBlank
                            .ExportOptions.ExportDestinationType = ExportDestinationType.DiskFile
                            .ExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat
                            diskDestination.DiskFileName = TempPath & empDtls(3) & "\" & filName
                            .ExportOptions.ExportDestinationOptions = diskDestination
                            .SetParameterValue("@a", "123")
                            .Export()
End With

' Outputing on my embed tag that the application type is PDF.

   embedPdf.Src = "Sample_Generated_PDF_File.pdf"

But I think There should be a safe way to do it and much faster way.,

Can I have an advice on this?

Thank You in advance.
ASKER CERTIFIED SOLUTION
Avatar of Mike McCracken
Mike McCracken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of louisfr
louisfr