Adding annotations behind the scenes
Posted: Fri Dec 03, 2010 1:43 am
I am trying to apply some annotations dynamically to a document.
mControl.Images.Add( "filepath.tif", true );
StampAnnotation tool = new StampAnnotation();
tool.Text = "Hello World";
mControl.Annotations[0].Add( tool );
This shows the annotation correctly, in both the annotation viewer and annotation thumbnail viewer. However when I edit the annotation by moving, rotating, or changing text the annotation thumbnail viewer show the original image and the new image. I'm not sure if this is a bug or if I am adding the annotations incorrectly.
After adding the annotation: http://cid-c168d16d5617adf3.office.live ... terAdd.png
After moving the annotation: http://cid-c168d16d5617adf3.office.live ... erMove.png
Thanks for any advice!
-Jerod
mControl.Images.Add( "filepath.tif", true );
StampAnnotation tool = new StampAnnotation();
tool.Text = "Hello World";
mControl.Annotations[0].Add( tool );
This shows the annotation correctly, in both the annotation viewer and annotation thumbnail viewer. However when I edit the annotation by moving, rotating, or changing text the annotation thumbnail viewer show the original image and the new image. I'm not sure if this is a bug or if I am adding the annotations incorrectly.
After adding the annotation: http://cid-c168d16d5617adf3.office.live ... terAdd.png
After moving the annotation: http://cid-c168d16d5617adf3.office.live ... erMove.png
Thanks for any advice!
-Jerod