im pushing a dataset to a Crystal report in an asp.net web application and it works just fine. i can also export in word,excel or pdf formats, however, if the report has multiple pages - i only get one page.
Has anyone done this before - im sure im missing one reference or line of code somewhere, but i just cant figure out where.
thanks again for any help
rik
Private Sub exportMePdf()
Try
Dim oStream As System.IO.MemoryStream
oStream = oRept.ExportToStream(ExportFormatType.PortableDocFormat)
Response.Clear()
Response.Buffer = True
Response.ContentType = "application/pdf"
Response.AddHeader("content-disposition", "attachment;filename=CrystalViewer.pdf")
Response.BinaryWrite(oStream.ToArray())
Response.End()
Catch ex As Exception
Response.Write(ex.Message)
End Try
End Sub
**********************************************************************
Sent via Fuzzy Software @
http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...