Hi TChart
I have an Annotation set in the Top Right of my chart. When Print Detail Resolution is increased the Annotation moves to the origin.
Is there a way to lock down the Annotation so it will not move.
Or
Is there a way to remove Print Detail Resolution from the Print Preview control so users do not have this option.
Thanks
Annotation Moves with Print Detail Resolution Change
Hi,
Yes, it is. In order for the Annotation Tools to print in the correct position you have to define their positions relative to other TeeChart objects and not as absolute pixel positions. Unfortunately the default positions are absolute pixel positions and so can't be used to print Charts - if you want to print an Annotation Tool in the ppLeftTop position,for example, you'll have to use code similar to the following :Is there a way to lock down the Annotation so it will not move.
Code: Select all
private void button1_Click(object sender, System.EventArgs e)
{
tChart1.Printer.Preview();
}
private void tChart1_BeforeDrawSeries(object sender, Steema.TeeChart.Drawing.Graphics3D g)
{
annotation1.Shape.CustomPosition = true;
annotation1.Shape.Left = tChart1.Axes.Left.Position-40;
annotation1.Shape.Top = (int)tChart1.Top;
}
I'm afraid there's no way to do this.Is there a way to remove Print Detail Resolution from the Print Preview control so users do not have this option.
Pep Jorge
http://support.steema.com
http://support.steema.com