Printing SMOOTH in batch mode
Posted: Thu Apr 06, 2006 3:59 pm
Hello -
I'm using TeeChart 7.06 with Delphi 7 and have been struggling to print some charts that contain dotted and dashed lines to an HP Color laser printer.
In the Forums on the Steema site, I was able to figure out how to set the
ChartPreviewer smooth setting by turning on the cpoAsBitmap Option for the component.
I have about 200 charts to print and I'd like to batch them, but I can't
figure out how to print as a Bitmap.
The code I had been using for the batch printing is as follows. Variable
dbcQnP is the TdbChart.
procedure TFormChartQs.PrintMonthlyCharts(StartDate,EndDate: TDateTime);
var ThisDate: TDateTime;
begin
ThisDate := StartOfTheMonth(StartDate);
while ThisDate < EndoftheMonth(EndDate) do
begin
SetChartDateRange(ThisDate,IncMonth(ThisDate));
dbcQnP.PrintLandscape;
ThisDate := IncMonth(ThisDate);
end; // while
end;
I've looked through the documentation, searched the examples, the forums, and the newsgroups, but I'm not seeing how to do it. Is it [easily] doable? Is there an undocumented Method of TdbChart, something like PrintAsBitmap?? (Wishful thinking?)
Will I need to create a bitmap from the Chart in an image component then
print the image?
Thanks,
Teri
I'm using TeeChart 7.06 with Delphi 7 and have been struggling to print some charts that contain dotted and dashed lines to an HP Color laser printer.
In the Forums on the Steema site, I was able to figure out how to set the
ChartPreviewer smooth setting by turning on the cpoAsBitmap Option for the component.
I have about 200 charts to print and I'd like to batch them, but I can't
figure out how to print as a Bitmap.
The code I had been using for the batch printing is as follows. Variable
dbcQnP is the TdbChart.
procedure TFormChartQs.PrintMonthlyCharts(StartDate,EndDate: TDateTime);
var ThisDate: TDateTime;
begin
ThisDate := StartOfTheMonth(StartDate);
while ThisDate < EndoftheMonth(EndDate) do
begin
SetChartDateRange(ThisDate,IncMonth(ThisDate));
dbcQnP.PrintLandscape;
ThisDate := IncMonth(ThisDate);
end; // while
end;
I've looked through the documentation, searched the examples, the forums, and the newsgroups, but I'm not seeing how to do it. Is it [easily] doable? Is there an undocumented Method of TdbChart, something like PrintAsBitmap?? (Wishful thinking?)
Will I need to create a bitmap from the Chart in an image component then
print the image?
Thanks,
Teri