Solved

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

Posted on 2016-08-03
2
221 Views
Last Modified: 2016-08-11
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.
0
Comment
Question by:akoIT
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 101

Accepted Solution

by:
mlmcc earned 500 total points
ID: 41741686
Try looking at these 2 articles by Eric Moreau


 Feeding Crystal Reports from your application
http://www.emoreau.com/Entries/Articles/2006/09/Feeding-Crystal-Reports-from-your-application.aspx

 Crystal Reports – Part II - Exporting
http://www.emoreau.com/Entries/Articles/2006/10/Crystal-Reports--Part-II.aspx

mlmcc
0
 
LVL 11

Expert Comment

by:louisfr
ID: 41742357
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

626 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question