Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Generate WordML documents with dynamic images with different sizes

28 views
Skip to first unread message

Dennis65

unread,
Sep 5, 2005, 10:29:23 AM9/5/05
to
I'm using a simple template in wordml that my simple program populates
with some data and images at run-time.
Now my problem is that images can change own sizes, and I don't know
them until run-time.
I can't find any way in WordML to tell Word to use auto re-size or
100%.
When I open with Word 2003, it seems that Word can't recognize auto or
100% and open image with very little scale.
At run-time i substitute @@@IMAGEPATH@@@ with current path. I generate
multiple doc with multiple images.
Anyone can help me?
My template (simplified) is:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<w:wordDocument
xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml"
xmlns:v="urn:schemas-microsoft-com:vml" >
<w:body>
<w:p>
<w:r>
<w:pict>
<v:shape id="_x0000_i1025"
style="width:auto;height:auto">
<v:imagedata src="@@@IMAGEPATH@@@"/>
</v:shape>
</w:pict>
</w:r>
</w:p>
</w:body>
</w:wordDocument>

Dennis....@gmail.com

unread,
Sep 7, 2005, 10:28:58 AM9/7/05
to
I found a solution by myself:
Instead of using w:pict I can use w:instrText in this mode:
<w:p>
<w:r>
<w:fldChar w:fldCharType="begin"/>
</w:r>
<w:r>
<w:instrText> INCLUDEPICTURE \d "@@@IMAGEPATH@@@" \*
MERGEFORMAT
</w:instrText>
</w:r>
<w:r>
<w:fldChar w:fldCharType="separate"/>
</w:r>
<w:r></w:r>
<w:r>
<w:fldChar w:fldCharType="end"/>
</w:r>
</w:p>
It includes a word command that can open image with 100% size when
UpdateFields function is used.

lakshmi sundari

unread,
Jun 9, 2010, 3:24:16 AM6/9/10
to
Can we include our local path inplace of "@@@IMAGEPATH@@@" like this
<v:imagedata src="D:\babgal.jpg" />

Please suggest me ASAP

url:http://www.ureader.com/msg/1100100.aspx

0 new messages