Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

export the chart to PDF

 Post Reply Post Reply
Author
Yokoe Hideo View Drop Down
New Member
New Member
Avatar

Joined: 29 Oct 2015
Posts: 19
Post Options Post Options   Quote Yokoe Hideo Quote  Post ReplyReply Direct Link To This Post Topic: export the chart to PDF
    Posted: 28 Jan 2016 at 2:27am
Hello,

Im using 'TMS Advanced Charts for VCL'.

How to export the chart to PDF ?
likes 'Demo Financial > Printing Samples > LINE_Portrait.pdf'.
I can not find the sample code.

Best reagards

Back to Top
Yokoe Hideo View Drop Down
New Member
New Member
Avatar

Joined: 29 Oct 2015
Posts: 19
Post Options Post Options   Quote Yokoe Hideo Quote  Post ReplyReply Direct Link To This Post Posted: 28 Jan 2016 at 3:34am
This sample is drawn with vector data.very beautiful !
However, I can only save to the raster data (bmp/jpg...)
how to save to PDF with  raster data ?
Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3568
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 28 Jan 2016 at 8:39am
Hi, 

To print the chart to a PDF, please use the following code:

  with printer do
  begin
    BeginDoc;
    AdvChartView2.PrintAllPanes(Printer.Canvas,Rect(0, 0, printer.PageWidth, printer.PageHeight));
    EndDoc;
  end;

Kind Regards,
Pieter
Back to Top
Yokoe Hideo View Drop Down
New Member
New Member
Avatar

Joined: 29 Oct 2015
Posts: 19
Post Options Post Options   Quote Yokoe Hideo Quote  Post ReplyReply Direct Link To This Post Posted: 29 Jan 2016 at 1:15am
Hi Pieter

I see.
TAdvChartView1 is printing of vector line.
TAdvGDIPChartView is printing via bitmap.
Thank you.
Back to Top
Yokoe Hideo View Drop Down
New Member
New Member
Avatar

Joined: 29 Oct 2015
Posts: 19
Post Options Post Options   Quote Yokoe Hideo Quote  Post ReplyReply Direct Link To This Post Posted: 10 Feb 2016 at 7:03am
Hi,
I became want to print without using a virtual printer .
so, Do you have or know a component that can be used with the TAdvChartView ?
Kind Regards,
Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3568
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 10 Feb 2016 at 8:39am
Hi, 

Printing is explained at the following tip:

Kind Regards, 
Pieter
Back to Top
Yokoe Hideo View Drop Down
New Member
New Member
Avatar

Joined: 29 Oct 2015
Posts: 19
Post Options Post Options   Quote Yokoe Hideo Quote  Post ReplyReply Direct Link To This Post Posted: 10 Feb 2016 at 8:56am
Hi,
I'm sorry.Description was missing.I want print the chart to a PDF. 

so,To do it ,the post 'Posted: 28 Jan 2016 at 8:39am' need a virtual printer.
how to print the chart to a PDF without using a virtual printer?
Do you have or know a component that can be used with the TAdvChartView ?

Kind Regards,
Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3568
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 10 Feb 2016 at 9:04am
Hi, 

We currently do not have a separate component for direct printing to a PDF. We will investigate if we can add support for this in the next version.

Kind Regards, 
Pieter
Back to Top
Yokoe Hideo View Drop Down
New Member
New Member
Avatar

Joined: 29 Oct 2015
Posts: 19
Post Options Post Options   Quote Yokoe Hideo Quote  Post ReplyReply Direct Link To This Post Posted: 10 Feb 2016 at 9:19am
Hi,Pieter
Thank you for your reply immediately.
I am looking forward to it.
Kind Regards,
Hideo
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down