Skip to Content
0
Former Member
Nov 02, 2012 at 03:21 PM

reduce PDF file when exporting to PDF

117 Views

Hi!

I seach all the web and i didn't find any answer.

I print purchase order with VS2010 using Crystal Report viewer object.

With this code, i export to a PDF file:

Try

Dim CrExportOptions As ExportOptions

Dim CrDiskFileDestinationOptions As New _

DiskFileDestinationOptions()

Dim CrFormatTypeOptions As New PdfRtfWordFormatOptions()

CrDiskFileDestinationOptions.DiskFileName = tempNamePDF

CrExportOptions = Report.ExportOptions

With CrExportOptions

.ExportDestinationType = ExportDestinationType.DiskFile

.ExportFormatType = ExportFormatType.PortableDocFormat

.DestinationOptions = CrDiskFileDestinationOptions

.FormatOptions = CrFormatTypeOptions

End With

Report.Export()

Catch ex As Exception

MsgBox(ex.ToString)

End Try

All works.... but my pdf file size is 80kb

At the top left of the report, i put an image, i also try to delete the image but the size it still 80kb...

How can i reduce size of report when exporting to PDF?

Thanks for your help!

Pascal