Printing SMOOTH in batch mode

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
beantreeze
Newbie
Newbie
Posts: 1
Joined: Thu Feb 17, 2005 5:00 am

Printing SMOOTH in batch mode

Post by beantreeze » 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

Bert Kreisel
Newbie
Newbie
Posts: 19
Joined: Thu Jan 01, 1970 12:00 am

Re: Printing SMOOTH in batch mode

Post by Bert Kreisel » Wed Aug 28, 2013 1:00 pm

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

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Printing SMOOTH in batch mode

Post by Yeray » Thu Aug 29, 2013 10:02 am

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
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Bert Kreisel
Newbie
Newbie
Posts: 19
Joined: Thu Jan 01, 1970 12:00 am

Re: Printing SMOOTH in batch mode

Post by Bert Kreisel » Thu Aug 29, 2013 12:25 pm

Hi Yeray,

thanks, that works!

Post Reply