Hi there,
just a quick question: is it possible to use the chart previewer and the chart printing funcitons (working very well ) to print my chart AND an image wich is over the chart in my form ?
(I use a timage instead of the tool image because i need to use events like OnMouse---...)
thank you
C.
print Chart + TImage
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Copeau,
You could try using something like the code below where Image1 is a TImage.
You could try using something like the code below where Image1 is a TImage.
Code: Select all
procedure TForm1.Button1Click(Sender: TObject);
begin
ChartPreviewer1.Execute;
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
Series1.FillSampleValues();
Chart1.Draw;
end;
procedure TForm1.Chart1AfterDraw(Sender: TObject);
begin
Chart1.Canvas.Draw(100,100,Image1.Picture.Graphic);
end;
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |