Solved

Crystal report to PDF (asp.net)

Posted on 2010-08-26
3
493 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 125 total points
Comment Utility
I'm under the impression the runtime has to be installed unfortunately.

L
0
 
LVL 2

Assisted Solution

by:bischofb_CRNET
bischofb_CRNET earned 125 total points
Comment Utility
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
Comment Utility
I was affraid so .. Thanks :)
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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. …
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now