Question : Crystal report to PDF (asp.net)

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)

Answer : Crystal report to PDF (asp.net)

I'm under the impression the runtime has to be installed unfortunately.

L
Random Solutions  
 
programming4us programming4us