Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2016-08-03
2
Medium Priority
?
273 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 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

730 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