Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing the contents of a Chartfx component

Status
Not open for further replies.

StevenK

Programmer
Jan 5, 2001
1,294
GB
I'm making use of a TChartfx (from the 'ActiveX' Tab) component (to generate a Pareto chart) and ideally want to display the chart on a Quick Report.
Whereas with standard TChart and TDBChart components I can replicate the chart on a QuickReport using a TQRDBChart component (for replicating a TDBChart) using the syntax :
QRChart1.Chart.Assign(DBChart1);
for tpI := 0 to (DBChart1.SeriesCount - 1) do
begin
CloneChartSeries(DBChart1[tpI]).ParentChart := QRChart1.Chart;
end;
However similar code cannot be used for the replicating of a TChartfx component on a Quick Report.
Has anyone done anything like this or could anyone suggest how I might go about this ?
Thanks in advance.
Steve
 
OK - I'm now able to print the contents of the TChartfx component - using the syntax 'Chartfx1.PrintIt'.
However my problem is now that the chart stretches itself to pit the page, ideally I want the chart to have similar dimensions (ratio of height to width) to that generated on the form.
Is this achievable ?
Thanks again.
Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top