Printing Pie Chart issue in FMX

TeeChart FireMonkey (Windows,OSX,iOS & Android) for Embarcadero RAD Studio, Delphi and C++ Builder (XE5+)
Post Reply
PastorMic
Newbie
Newbie
Posts: 16
Joined: Mon Aug 28, 2017 12:00 am

Printing Pie Chart issue in FMX

Post by PastorMic » Fri Sep 08, 2017 6:57 pm

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
Attachments
ChartFMX2.JPG
This is a screen grab of the PDF that is produced when I run the Chart.Print method. Note the small size of the legend and the title. The labels around the pie chart are very tiny as well.
ChartFMX2.JPG (36.25 KiB) Viewed 16971 times
ChartFMX1.JPG
This is a screen grab of the FMX app's chart. It's displaying everything as it should.
ChartFMX1.JPG (41.83 KiB) Viewed 16972 times

Yeray
Site Admin
Site Admin
Posts: 9622
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Printing Pie Chart issue in FMX

Post by Yeray » Tue Sep 12, 2017 9:03 am

Hello,

Try using the TTeePreviewPanel. Ie:

Code: Select all

  with TTeePreviewPanel.Create(Self) do
  begin
    Panel:=Chart1;
    Print;
  end;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

PastorMic
Newbie
Newbie
Posts: 16
Joined: Mon Aug 28, 2017 12:00 am

Re: Printing Pie Chart issue in FMX

Post by PastorMic » Tue Sep 12, 2017 4:08 pm

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.

PastorMic
Newbie
Newbie
Posts: 16
Joined: Mon Aug 28, 2017 12:00 am

Re: Printing Pie Chart issue in FMX

Post by PastorMic » Tue Sep 12, 2017 4:18 pm

Yeray,

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

PastorMic
Newbie
Newbie
Posts: 16
Joined: Mon Aug 28, 2017 12:00 am

Re: Printing Pie Chart issue in FMX

Post by PastorMic » Tue Sep 12, 2017 7:50 pm

Yeray,

Never mind. I found it. Thanks.

Post Reply