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.
https://msdn.microsoft.com/en-us/library/aa288374(v=vs.71).aspx