Hi, there,
I wrote an dialog-based app named TeeChartTest to test the print and print preview function and I added a botton on the dialog to call m_chart1.GetPrinter().ShowPreview(); It worked fine except that the title of the preview window is "Teechart Print Preview", not what I expected to be "TeeChartTest Print Preview". Is there any way to change the preview window title? Thank you!
How to change the preview window title
Hi David,
yes, it can be changed, but you've to add a TPreviewer component into the form, assign it to the Chart (using ChartLink) and then use the PreviewTitle property to set a customized title i.e. :
TeePreviewer1.SetPreviewTitle(customtitle);
TeePreviewer1.ShowPreview();
yes, it can be changed, but you've to add a TPreviewer component into the form, assign it to the Chart (using ChartLink) and then use the PreviewTitle property to set a customized title i.e. :
TeePreviewer1.SetPreviewTitle(customtitle);
TeePreviewer1.ShowPreview();
Pep Jorge
http://support.steema.com
http://support.steema.com