Page 1 of 1

Printing Pie Chart issue in FMX

Posted: Fri Sep 08, 2017 6:57 pm
by 16881567
Hi,

Still adjusting to the differences between the VCL and FMX versions. Now the issue is printing. I'm attaching two files below. The first is how the chart looks within the FMX app. Everything is fine with it.

The second file is a PDF showing how it prints. Note that the title is tiny, the legend is also tiny, and the marks close to the pie itself are so small you can't really even see them.

The printed chart produced by the VCL version of the app looks perfect. The pie chart is smaller on the page, and the title, legend, and marks/labels are all clearly visible.

As far as I can tell, the properties are set pretty much the same. Can anyone offer any help as to why I'm getting the printed results in the FMX version that I'm getting?

Thanks.

John

Re: Printing Pie Chart issue in FMX

Posted: Tue Sep 12, 2017 9:03 am
by yeray
Hello,

Try using the TTeePreviewPanel. Ie:

Code: Select all

  with TTeePreviewPanel.Create(Self) do
  begin
    Panel:=Chart1;
    Print;
  end;

Re: Printing Pie Chart issue in FMX

Posted: Tue Sep 12, 2017 4:08 pm
by 16881567
Yeray,

Thanks for the info - but where do I get the unit the TeePreviewPanel unit? I tried adding that to my Uses clause in my form, but it doesn't find it. I have TeeChart Standard.

Thanks for your help.

Re: Printing Pie Chart issue in FMX

Posted: Tue Sep 12, 2017 4:18 pm
by 16881567
Yeray,

Just to make sure here - I'm using FMX here, not VCL.

Re: Printing Pie Chart issue in FMX

Posted: Tue Sep 12, 2017 7:50 pm
by 16881567
Yeray,

Never mind. I found it. Thanks.