Group:  General » microsoft.public.office.xml
Thread: sizing of dynamic Images created from xsl/xml

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

sizing of dynamic Images created from xsl/xml
burn1down_2k[ at ]hotmail.com 29.11.2005 19:02:53
greetings.

i am working on code that generates wordml from source xml and
stylesheets which my .net 2005 vsto project creates.

I can successfully show an image from the xml (base 64 incoded) into
the wordml but the problem is that i can't figure out a way to get the
image to display as it's original size.
I attempted to set the v:shape style property to auto and 100% with no
luck, the image always comes out a warped size from the original,
ususually heigh is 70% and width is 134%.
[Quoted Text]
>From inside of MS word i can reset the image property so it is
displaying 100% with and height of the original size but i can't find a
way to do this in wordml.

thanks

maryjane

Re: sizing of dynamic Images created from xsl/xml
Cindy M -WordMVP- <C.Meister-C[ at ]hispeed.ch> 04.12.2005 11:36:00
[Quoted Text]
> I can successfully show an image from the xml (base 64 incoded) into
> the wordml but the problem is that i can't figure out a way to get the
> image to display as it's original size.
> I attempted to set the v:shape style property to auto and 100% with no
> luck, the image always comes out a warped size from the original,
> ususually heigh is 70% and width is 134%.
> >From inside of MS word i can reset the image property so it is
> displaying 100% with and height of the original size but i can't find a
> way to do this in wordml.
>
Does the image retain that after you close and re-open the document?

Have you tried saving this as WordProcessingML and comparing that result
with the one you're trying to generate?

Have you tested with other graphics files / graphics formats?

Often, when the settings give you problems during automation, it turns
out to be a problem in the graphics file. There was a situation once when
we were seeing something "weird" and it turned out the graphic had been
generated with some strange size information that was being "ignored"
when Word imported the graphics file through the UI, but these "filters"
don't kick in during automation.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)

Re: sizing of dynamic Images created from xsl/xml
"llasserre" <llasserre[ at ]gmail.com> 05.12.2005 08:09:23
put hg and lg size to 0
and you'll find you'r image à original size .

Good luck

Re: sizing of dynamic Images created from xsl/xml
"merry jane" <burn1down_2k[ at ]hotmail.com> 21.12.2005 14:49:06
Thanks, setting the images style property to width:0px;height:0px
worked fine.
I was pulling my hair out on this one, i couldnt find any documentation
on it.

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net