Annotation position when exporting to jpg or printed
Posted: Wed Dec 31, 2003 4:46 pm
Position of annotations is wrong on the exported image or printed output.
Chris suggested to use (see previous post)
m_Chart1.Series(0).CalcXPos() and m_Chart1.Series(0).CalcYPos().
I am already doing that.
Print preview displays the annotations in the correct place, the printed output is wrong.
int X = (int)m_Chart1.Series(0).CalcXPos( myX );
m_Chart1.GetTools().GetItems( 0 .GetAsAnnotation().GetShape().SetLeft(X);
int Y = (int)m_Chart1.Series(0).CalcXPos( myY );
m_Chart1.GetTools().GetItems( 0 .GetAsAnnotation().GetShape().SetTop(Y);
Chris suggested to use (see previous post)
m_Chart1.Series(0).CalcXPos() and m_Chart1.Series(0).CalcYPos().
I am already doing that.
Print preview displays the annotations in the correct place, the printed output is wrong.
int X = (int)m_Chart1.Series(0).CalcXPos( myX );
m_Chart1.GetTools().GetItems( 0 .GetAsAnnotation().GetShape().SetLeft(X);
int Y = (int)m_Chart1.Series(0).CalcXPos( myY );
m_Chart1.GetTools().GetItems( 0 .GetAsAnnotation().GetShape().SetTop(Y);