WordML Bug

S

S.Prabhu

I am using the WordML generated from the following code snippet for one the
application we are developing.

Str = ActiveDocument.Range.XML

The format applied in the document like Bold, Italic, etc are not embedded
in the string generated from the active document (only for few of the
documents tested).

Is there any way we could have a work around to get the format properties in
WordML.
 
Y

Yves Dhondt

They are as far as I can see.

For example, I get

Underline:
<w:r wsp:rsidRPr="00A77F05"><w:rPr><w:u
w:val="single"/></w:rPr><w:t>underline</w:t></w:r>

Bold:
<w:r wsp:rsidRPr="00A77F05"><w:rPr><w:b/></w:rPr><w:t>bold</w:t></w:r>

Italics:
<w:r wsp:rsidRPr="00A77F05"><w:rPr><w:i/></w:rPr><w:t>italics</w:t></w:r>

Those examples are defined locally at the run level (meaning I just used the
normal style and applied the formatting by hand). Depending on the style you
are using, they could be defined elsewhere.

What is the xml you are getting?

Yves
 

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