VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Printing Crystal report from ASP.net, How to print crystal report from .net, Best way to print crys

by Riyas Palakkat (3 Submissions)
Category: Miscellaneous
Compatability: VB.NET
Difficulty: Unknown Difficulty
Originally Published: Mon 8th October 2007
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Printing Crystal report from ASP.net, How to print crystal report from .net, Best way to print crystal report from .net, Exporting crystal

Rate Printing Crystal report from ASP.net, How to print crystal report from .net, Best way to print crys



If Not Page.IsPostBack Then
            Dim oStream As MemoryStream  ' using System.IO
            oStream = New MemoryStream
            Dim rptReq As New UrReportClass
            rptReq.SetDatabaseLogon("id", "pwd", "ServerAddress", "database")
            oStream = rptReq.ExportToStream (CrystalDecisions.Shared.ExportFormatType.PortableDocFormat)
            Response.Expires = 0
            Response.Buffer = True
            Response.Clear()
            Response.ContentType = "application/pdf"
            Response.AddHeader("Content-Disposition", "inline;filename=mypdf.pdf")
            Response.BinaryWrite(oStream.ToArray())
            Response.Flush()
        End If

Download this snippet    Add to My Saved Code

Printing Crystal report from ASP.net, How to print crystal report from .net, Best way to print crys Comments

No comments have been posted about Printing Crystal report from ASP.net, How to print crystal report from .net, Best way to print crys. Why not be the first to post a comment about Printing Crystal report from ASP.net, How to print crystal report from .net, Best way to print crys.

Post your comment

Subject:
Message:
0/1000 characters