Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Crystal report to PDF (asp.net)

Posted on 2010-08-26
3
Medium Priority
?
512 Views
Last Modified: 2012-05-10
Hi experts!

I have a websolution where I would like to create an pdf from a crystal report.

I have a solution using the report document (shown below). But I really would like a solution where I only have a crystal dll. Why: then I dont need to ask my hosting center if they will install crystal runitme on their environment :-)(http://resources.businessobjects.com/support/additional_downloads/runtime.asp#09)

But is that at all possible?! Or do I then need another solution? :) Thanks

        Dim stockObjectsReport As ReportDocument = New ReportDocument()
        Dim reportPath As String = Server.MapPath("CrystalReport.rpt")
        stockObjectsReport.Load(reportPath)
        'stockObjectsReport.SetDataSource()

        Dim strFilnavn As String = "C:\websites\test.pdf"
        If System.IO.File.Exists(strFilnavn) Then
            System.IO.File.Delete(strFilnavn)
        End If
        stockObjectsReport.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, strFilnavn)
0
Comment
Question by:lpf75
3 Comments
 
LVL 11

Accepted Solution

by:
tickett earned 375 total points
ID: 33541801
I'm under the impression the runtime has to be installed unfortunately.

L
0
 
LVL 2

Assisted Solution

by:bischofb_CRNET
bischofb_CRNET earned 375 total points
ID: 33545959
There is no way to do a manual installation of Crystal Reports. I talked to SAP about this a while back and they said that CR requires numerous DLLs and changes to the registry for it to work. They looked into getting around this with .NET, but said it was too complex to get it working.
0
 

Author Closing Comment

by:lpf75
ID: 33546506
I was affraid so .. Thanks :)
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses
Course of the Month9 days, 19 hours left to enroll

926 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