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
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
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.