PrintPreview Standard FireMonkey

TeeChart FireMonkey (Windows,OSX,iOS & Android) for Embarcadero RAD Studio, Delphi and C++ Builder (XE5+)
Post Reply
acastel
Newbie
Newbie
Posts: 3
Joined: Thu Oct 17, 2013 12:00 am

PrintPreview Standard FireMonkey

Post by acastel » Sat Oct 26, 2013 11:18 pm

Can I call the PrintPreview or something like this with TChart Standard on XE4 Firemonkey desktop application???
(2013.08.130430 32bits FMX)

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: PrintPreview Standard FireMonkey

Post by Narcís » Mon Oct 28, 2013 8:38 am

Hello,

You should try doing as explained here using FMXTee prefixed units instead.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

acastel
Newbie
Newbie
Posts: 3
Joined: Thu Oct 17, 2013 12:00 am

Re: PrintPreview Standard FireMonkey

Post by acastel » Wed Oct 30, 2013 3:05 am

Hello,
Thanks for the help.
This worked to show the preview print:

uses FMXTee.Print.Preview and TChartPreview.Preview(Self, Chart1);

But..... I got another problem. The preview window opens with all black (see the print screen).
Your suggestion didn´t work.
PrintPreview.jpg
PrintPreview.jpg (40.96 KiB) Viewed 13742 times

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

Re: PrintPreview Standard FireMonkey

Post by Yeray » Thu Oct 31, 2013 4:01 pm

Hi,


Are you sure you are using the Standard version? This doesn't work for me.

Code: Select all

uses FMXTee.Print.Preview;

procedure TForm1.Button1Click(Sender: TObject);
begin
  TChartPreview.Preview(Self, Chart1);
end;
Could you please arrange a simple example project we can run as is to reproduce the black dialog in the picture?
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

acastel
Newbie
Newbie
Posts: 3
Joined: Thu Oct 17, 2013 12:00 am

Re: PrintPreview Standard FireMonkey

Post by acastel » Mon Nov 04, 2013 12:26 pm

Hi Yeray,

There is:

Code: Select all

unit Unit1;

interface

uses
  System.SysUtils, System.Types, System.UITypes, System.Rtti, System.Classes,
  System.Variants, FMX.Types, FMX.Controls, FMX.Forms, FMX.Dialogs,
  FMX.StdCtrls, FMXTee.Engine, FMXTee.Procs, FMXTee.Chart, FMXTee.Series, FMXTee.Print.Preview;

type
  TForm1 = class(TForm)
    Chart1: TChart;
    Button1: TButton;
    Series1: TLineSeries;
    procedure FormShow(Sender: TObject);
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.fmx}

procedure TForm1.Button1Click(Sender: TObject);
begin
TChartPreview.Preview(Self, Chart1);
end;

procedure TForm1.FormShow(Sender: TObject);
var
  I: Integer;
begin
  for I := 0 to 200 do
  begin
  Chart1.Series[0].AddY(Random(1000));
  end;
end;

end.
Thanks!
Imagen1.jpg
Imagen1.jpg (365.6 KiB) Viewed 13677 times
Imagen3.jpg
Imagen3.jpg (249.11 KiB) Viewed 13677 times

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: PrintPreview Standard FireMonkey

Post by Narcís » Tue Nov 05, 2013 11:28 am

Hello,

I can not reproduce this with TeeChart Pro FMX build 2013.08.130521 (latest maintenance release available) nor with the current beta. Can you please check if 2013.08.130521's eval version or the beta solve the problem at your end? Otherwise, you might expect the issue being fixed for the next maintenance release due out by the end of this week or next week the latest.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply