Page 1 of 1

Printing SMOOTH in batch mode

Posted: Thu Apr 06, 2006 3:59 pm
by 9236006
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

Re: Printing SMOOTH in batch mode

Posted: Wed Aug 28, 2013 1:00 pm
by 16561194
I'm also searching a solution for automatic smooth printing. The print with TCustomTeePanel.Print should look the same like TTeePreviewPanel.Print but Chart.Print seems not even use the PrintMargins.
Could you please help me?

Thanks in advance
Bert Kreisel

Re: Printing SMOOTH in batch mode

Posted: Thu Aug 29, 2013 10:02 am
by yeray
Hi Bert,

Have you seen this thread, where a similar issue was discussed?
http://www.teechart.net/support/viewtop ... 21&p=44971

And of course the StrechDraw references in it:
http://www.teechart.net/support/viewtop ... 556#p37556

Re: Printing SMOOTH in batch mode

Posted: Thu Aug 29, 2013 12:25 pm
by 16561194
Hi Yeray,

thanks, that works!