Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

PDFSettings.CompressionLevel := ppZLib.clNone;

edited February 2012 in General
Hi,

Following code worked with version 12.05, but in v14.02 this gives an error.

ppReport1.PDFSettings.CompressionLevel := ppZLib.clNone;

Error:
[DCC Error] FacturenUITAfdrukken2.pas(1745): E2010 Incompatible types: 'ppPDFSettings.TCompressionLevel'
and 'FacturenUITAfdrukken2.TCompressionLevel'

How can I correct this?

Comments

  • edited February 2012
    Hi Stef,

    RB 14 for certain later versions of Delphi no longer uses ppZLib, but
    just the built-in ZLib unit. Try setting CompressionLevel := ZLib.clNone;

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2012
    Hello Nico,

    That works just fine. Thank you very much.

    Regards,
    Stef Merlijn
This discussion has been closed.