Click here to Skip to main content
Click here to Skip to main content

Generate a PDF document from exported stream of a crystal report

, 10 May 2010 CPOL
The last part can be written much easier in VB:Private Sub msGPDF_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles msGPDF.Click Dim Stream As IO.Stream = objRpt.ExportToStream(ExportFormatType.PortableDocFormat) Dim Buffer(CInt(Stream.Length)) As Byte ...

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

10 May 2010
lidialee
1 alternative  
I have a report which can be viewed in Crystal Report viewer in VS. Client needs to generate a PDF file with a click of a button and the PDF should pop up upon finishing exporting and let the client decide where to save the file.'vb.netImports...

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

atverweij
Chief Technology Officer buildIT IT-Solutions BV
Netherlands Netherlands
Theo worked as a VB architect and software engineer since 1994, started with VB3, en is working with VB ever since to build mission critical enterprise applications for a wide range of customers.

| | Privacy | Terms of Use | Mobile
Web03 | 2.8.150302.1 | Last Updated 10 May 2010
Article Copyright 2010 by atverweij
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid