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
Print Dialog - Set form caption
Hi PaliGap,
using the TeePreviewer component you can do :
TeePreviewer1.PreviewTitle = "My custom Title"
using the TeePreviewer component you can do :
TeePreviewer1.PreviewTitle = "My custom Title"
Pep Jorge
http://support.steema.com
http://support.steema.com
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
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
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 :
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
Pep Jorge
http://support.steema.com
http://support.steema.com