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.ExportDesti nationType = ExportDestinationType.Disk File
.ExportOptions.ExportForma tType = ExportFormatType.PortableD ocFormat
diskDestination.DiskFileNa me = TempPath & empDtls(3) & "\" & filName
.ExportOptions.ExportDesti nationOpti ons = 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.
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.ExportDesti
.ExportOptions.ExportForma
diskDestination.DiskFileNa
.ExportOptions.ExportDesti
.SetParameterValue("@a", "123")
.Export()
End With
' Outputing on my embed tag that the application type is PDF.
embedPdf.Src = "Sample_Generated_PDF_File
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
https://msdn.microsoft.com/en-us/library/aa288374(v=vs.71).aspx