mizu_chil
June 11th, 2005, 10:11 PM
Hi!
I am having a trouble exporting my report to pdf. Everytime I'll click on the export button, the page runs to a blank page. Also, there are times when i click the export button, an error occurs saying "Logon Failed" Here's my code. Hope you can help me
Private Sub cmdExport_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdExport.Click
oStream = New MemoryStream
oStream = rpt.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat)
Response.Write(oStream)
Response.End()
Response.Clear()
Response.Buffer = True
Response.ContentType = "application/pdf"
Response.BinaryWrite(oStream.ToArray())
Response.End()
End Sub
Thanks!
I am having a trouble exporting my report to pdf. Everytime I'll click on the export button, the page runs to a blank page. Also, there are times when i click the export button, an error occurs saying "Logon Failed" Here's my code. Hope you can help me
Private Sub cmdExport_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdExport.Click
oStream = New MemoryStream
oStream = rpt.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat)
Response.Write(oStream)
Response.End()
Response.Clear()
Response.Buffer = True
Response.ContentType = "application/pdf"
Response.BinaryWrite(oStream.ToArray())
Response.End()
End Sub
Thanks!