CrystalViewer export to .pdf

R

rik

im using CrystalViewer in an asp.net web application and pushing a dataset to it. it works fine and displays just fine. however when i export it and it has multiple pages, it only exports the very first page. is there something im missing on this?
any help is appreciated
thanks
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top