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

TChart "Plan"component does not print in PDF

edited September 2012 in General
In our application the report Designer is available to our enduser to
alter and create report designs.

one of our users incoorporated the TChart component "Plan" into its
report, and it shows perfectly in a preview screen or when printing to a
physical printer..

When he print the report form the reportviewer to a PDF file, the Plan
component isnt printed any more. An Access violation occurs in
ppMEtaFilereader.ProcessMetaRecord(aPMetaRecord: Pointer), line 1033
where a reference is made to FGDIObjects[liIndex].GDIObjectType while
FGIObjects[liInderx] is nil.

What is going wrong here?

Using RB 14.05

Comments

  • edited September 2012
    Got some more info

    Caused by using gradients in the point-settings of the plan component.
    Disabling the gradients makes the component appear in the pdf

    The access violation can be circumvented by adding the following line in
    ppMetaFileRead.pas (line 1033)

    if (liIndex >=0) and (liIndex < Length(FGDIObjects)) and
    assigned(FGDIObjects[liIndex]) then





    Op 13-9-2012 13:20, Bas schreef:
  • edited September 2012
    Hi Bas,

    Thanks for the info. Please forgive me but I am a bit confused about
    how to recreate this issue. I have searched for the "Plan" series type
    but am unable to find it to recreate this problem. I am using the
    latest version of TeeChart for Delphi XE2.

    If possible, please send a simple example demonstrating the problem in
    zip format to support@digital-metaphors.com and I'll take a look at it.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.