[Q] Simple Graph & Printing....

Please post bug reports, feature requests, or any question regarding the DELPHI AREA projects here.

[Q] Simple Graph & Printing....

Postby TheEdge » March 14th, 2006, 9:03 pm

G'Day,

- Using the .Print() method as follows:

with Printer do
begin
BeginDoc;
try
MySimpleGraph.Print(Canvas, Rect(0, 0, PageWidth, PageHeight));
finally
EndDoc;
end;
end;

- Why does the above only work if I have an object in the simple graph drawing area in top left (0,0) and bottom right of the SG area? ie. If I have a SG sized to A4 in pixels how do I make sure that comes out on the printer that is also sized at A4?

TIA
TheEdge
Active Member
Active Member
 
Posts: 15
Joined: March 14th, 2006, 8:47 pm

Postby Kambiz » March 15th, 2006, 12:50 pm

In v2.1 I've added a method to export the graph in to a TGraphic object. Therefore you can freely customize the print output.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm

Postby TheEdge » March 15th, 2006, 9:08 pm

Kambiz wrote:In v2.1 I've added a method to export the graph in to a TGraphic object. Therefore you can freely customize the print output.


Any ideas on when 2.1 will "see the light of day"? :)

PS. Great component. Thanks making it freely available.
TheEdge
Active Member
Active Member
 
Posts: 15
Joined: March 14th, 2006, 8:47 pm

Postby Kambiz » March 16th, 2006, 1:17 pm

I hope this weekend.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm


Return to DELPHI AREA Projects

Who is online

Users browsing this forum: No registered users and 1 guest

cron