Page 1 of 1

Print Dialog - Set form caption

Posted: Sat Mar 20, 2004 2:32 pm
by 9080944
How can I set the print dialog to something other than the default "TeeChart Print Preview". I would like to set this through code. I cannot seem to find reference to this.

Thanks

Paligap

Posted: Sun Mar 21, 2004 4:06 pm
by Pep
Hi PaliGap,

using the TeePreviewer component you can do :
TeePreviewer1.PreviewTitle = "My custom Title"

Posted: Tue Mar 23, 2004 9:07 am
by 9080944
I am opening the print preview through the following command. This is performed through the click event of a button on the form, on the form is also the displayed chart.

ChartName.Printer.ShowPreview

This then opens the print dialog. How can I set the title of he dialog when opening it this way.

Regards

Paligap

Posted: Tue Mar 23, 2004 11:53 am
by Pep
Hi Paligap,

the only way that I know of is placing a TeePreviewer component on the Form and use the following code to show the Preview :

Code: Select all

With TeePreviewer1
    .Chart = TChart1
    .PreviewTitle = "My Custom Title"
    .ShowPreview
End With