Adding XML code to file to avoid showing table gridlines

G

Guy007

Hi,

I have an HTML MHT file, which i am opening in Microsoft Word 2003. I have
already successfully added some code in the html (see below) to modify some
settings in the document. For instance, I managed to force it to open in
Print View and I set the page orientation to portrait or landscape as desired.

I now would like to add some XML to the file, to force Word's Table > Hide
Gridlines option to be enabled when opening the file. Any idea what XML i
need to add to my file?!

Thanks! :)


--------------------------------
<html xmlns:eek:="urn:schemas-microsoft-com:eek:ffice:eek:ffice"
xmlns:w="urn:schemas-microsoft-com:eek:ffice:word"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<xml>
<w:WordDocument>
<w:View>Print</w:View>
<w:Zoom>90</w:Zoom>
<w:DoNotOptimizeForBrowser/>
</w:WordDocument>
</xml>
</head>

<body>
etc
 
J

Jean-Guy Marcil

Guy007 was telling us:
Guy007 nous racontait que :
Hi,

I have an HTML MHT file, which i am opening in Microsoft Word 2003.
I have already successfully added some code in the html (see below)
to modify some settings in the document. For instance, I managed to
force it to open in Print View and I set the page orientation to
portrait or landscape as desired.

I now would like to add some XML to the file, to force Word's Table >
Hide Gridlines option to be enabled when opening the file. Any idea
what XML i need to add to my file?!

Thanks! :)


--------------------------------
<html xmlns:eek:="urn:schemas-microsoft-com:eek:ffice:eek:ffice"
xmlns:w="urn:schemas-microsoft-com:eek:ffice:word"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<xml>
<w:WordDocument>
<w:View>Print</w:View>
<w:Zoom>90</w:Zoom>
<w:DoNotOptimizeForBrowser/>
</w:WordDocument>
</xml>
</head>

<body>
etc

Here is a total guess based on VBA knowledge and the code you posted:

How about:

<w:DoNotDisplayGridLines/>
 

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