- Home
·
- Miscellaneous
·
- Printing Crystal report from ASP.net, How to print crystal report from .net, Best way to print crys
Printing Crystal report from ASP.net, How to print crystal report from .net, Best way to print crys
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
(1(1 Vote))
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
Printing Crystal report from ASP.net, How to print crystal report from .net, Best way to print crys Comments
No comments yet — be the first to post one!
Post a Comment