Page 1 of 1

I wanna change Print Preview caption..

Posted: Tue Apr 13, 2004 2:37 am
by 9336606
I wanna change Print Preview caption.
(ex. TeeChart Print Preview -> My Preview Message)

so, I bought TeeChart with Source and changed ChartPreview.Caption at Object Inspector and Caption of TChartPreview.Create method on TeePrevi.pas.

But I can't build all projects because of ChartPreview.CBPrinters and TeePreviewPanel1 Error.
And I cannot change the caption. :(

How can I change the Print Preview caption with My New Message?

Posted: Tue Apr 13, 2004 9:42 am
by Pep
Hi,

you can change it by using the following code :

Code: Select all

ChartPreviewer1.Title := 'My Custom Title';

I cannot find out the definition of ChartPreviewer1

Posted: Wed Apr 14, 2004 1:12 am
by 9336606
Thank you but...
I cannot find out the definition of ChartPreviewer1. :cry:
Can you write full code include "uses" and definition(create)?

Running Delphi7 and Teechart Pro 7

==> Thank you! I got it!
I succeed to change the title~ :D

Posted: Wed Apr 14, 2004 8:02 am
by Pep
Hi,
Can you write full code include "uses" and definition(create)?
You only must add a ChartPreviewer component (from the TeeChart tab) on the form and assign the Chart.