WordML - which property should I use

J

Jialiang Ge [MSFT]

Hello Dave

For your first question about <wp:docPr descr='filename.png'/> and
<pic:cNvPr name="filename.png"/>:
The attribute 'descr' means description of the node, and 'name' set a name
for the node. Both are optional. You can change them to any other value.

For your second question about <wp:extent cx="123" cy="456"/> or <a:ext
cx="123" cy="456"/>
wp:extent change the size of the WordProcessing drawing object
a:ext change the size of the DrawingML shape, and it defines the size of
the bounding box.
The following blog gives a detailed description of the difference between
the two nodes.
http://blogs.infosupport.com/wouterv/archive/2006/09/12/Showing-of-the-Drawi
ngML-shape-effects.aspx

Please let me know if you have any other concerns, or need anything else.

Sincerely,
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
For MSDN subscribers whose posts are left unanswered, please check this
document: http://blogs.msdn.com/msdnts/pages/postingAlias.aspx

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications. If you are using Outlook Express/Windows Mail, please make sure
you clear the check box "Tools/Options/Read: Get 300 headers at a time" to
see your reply promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
J

Jialiang Ge [MSFT]

Hello Dave,

Word 2007 gives different default value of name and descr according to
different source of images. For instance

1. If the image is copied from a web page, the name and descr of wp:docPr
and pic:cNvPr will be:
<wp:docPr name="Picture 2" descr="***" />
<pic:cNvPr name="Picture 2" descr="***" />
*** stands for the alt part of the web image.

2. If the image is copied from a web image without alt or from a raw
source, such as a picture drawn in mspaint.exe:
<wp:docPr name="Picture 2" />
<pic:cNvPr name="Picture 2" />

3. If it is inserted from an image existing in the hard directory:
<wp:docPr name="Picture 2" descr="****.jpg" />
<pic:cNvPr name="****.jpg" />
****.jpg stands for the file name of the image.

Therefore, my personal suggestion is to use <pic:cNvPr name, because
<wp:docPr descr sometimes does not have value. Hope it helps.

Sincerely,
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

=================================================
When responding to posts, please "Reply to Group" via your newsreader
so that others may learn and benefit from your issue.
=================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top