Showing Image in Annotation
Posted: Fri Nov 21, 2003 7:07 pm
Suppose you want to add a company logo to a chart template, so every chart
has the logo in the bottom right corner (or whereever).
I have tried using a Tools.Annotation to do this, but there are a few
problems.
1) the image does not save/restore with the template. if you create an
annotation and set the pattern to be an image, then do a save/restore, the
image is gone.
2) there is no way to specifically set the size of the annotation. it
automatically adapts to match the size of the text, but in this case, there
is no text - only an image. It would be nice if there was an image mode
called "Stretch" that would stretch the annotation to fit the image. Even
without that, I can't even programmatically set the size of the annotation
because those properties are not available.
I tried using a Tools.ChartImage, but that does not seem to work either. I
couldn't find any other Tools object that seems like it would accomplish
what I need to do.
Any suggestions?
has the logo in the bottom right corner (or whereever).
I have tried using a Tools.Annotation to do this, but there are a few
problems.
1) the image does not save/restore with the template. if you create an
annotation and set the pattern to be an image, then do a save/restore, the
image is gone.
2) there is no way to specifically set the size of the annotation. it
automatically adapts to match the size of the text, but in this case, there
is no text - only an image. It would be nice if there was an image mode
called "Stretch" that would stretch the annotation to fit the image. Even
without that, I can't even programmatically set the size of the annotation
because those properties are not available.
I tried using a Tools.ChartImage, but that does not seem to work either. I
couldn't find any other Tools object that seems like it would accomplish
what I need to do.
Any suggestions?