Toggle navigation
ReportBuilder Support Forums
Categories
Discussions
Activity
Sign In
Home
›
General
ReportBuilder 22.06 now available including Delphi 12.2 support!
New Blog Posts: Merging Reports -
Part 1
and
Part 2
How to change Compressionlevel in PDFSettings by code?
rbuser
January 2007
edited January 2007
in
General
Hi,
Changing the compressionlevel like below will generate an error
"Incompatible types TppCompressionlevel and Integer"
report1.PDFSettings.CompressionLevel := clNone;
Does anybody know how to change it to the respective levels?
Regards,
Stef
Comments
nicocizik
January 2007
edited January 2007
Hi Stef,
You need to add ppZLib to your uses clause. "clNone" is also used by the
Graphics file as a color. To be sure you are using the correct one, try the
following...
ppReport1.PDFSettings.CompressionLevel := ppZLib.clNone;
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Best Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
rbuser
January 2007
edited January 2007
Hello Nico,
That workes fine, thank you!
This discussion has been closed.
Comments
You need to add ppZLib to your uses clause. "clNone" is also used by the
Graphics file as a color. To be sure you are using the correct one, try the
following...
ppReport1.PDFSettings.CompressionLevel := ppZLib.clNone;
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
That workes fine, thank you!