Теги VML не отображаются в текстовом документе, который я создаю в классическом asp

мой классический код asp генерирует следующий HTML (который включает теги VML), который отлично отображается в браузере, но как только тот же самый код используется для создания документа Word, документ Word по-прежнему генерируется нормально, но ВСЕ теги vml потеряны! Я имею в виду, что только теги html печатаются нормально, а теги vml - нет!

Я попытался заменить теги vml на теги SVG, но тот же результат наблюдается и для тегов SVG!

Обратите внимание, что эта проблема возникает только в Office 2013, текстовый документ генерирует все теги vml и html в Office 2007.
Однако мы не можем выполнить откат.

html, сгенерированный кодом, вставленным ниже

<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"     xmlns:w="urn:schemas-microsoft-com:office:word">
<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">

<link rel=File-List href="xxxtestlink">

<title>TEST VML CHECK REPORT</title>
<style>
...
</style>

<xml:namespace ns="urn:schemas-microsoft-com:vml" prefix="v"/>
<style type="text/css">
v\:* { behavior: url(#default#VML); }
</style>

</head>
<body lang="EN-GB">

<div class=Section1>

<style>
p { font-family: Arial; color: #505050; line-height: 120%; }
p.spaced { line-height:12.0pt; mso-line-height-rule: exactly; }
li { margin-top: 0pt; margin-bottom: 0pt; color: #505050; line-height: 120%; }
strong { color: #505050; }
table.small { color: #505050; line-height:12.0pt; mso-line-height-rule: exactly; font-size: 7pt; }
table.small tr { padding: 1.4pt 1.4pt 1.4pt 1.4pt; }
table.small td { padding: 1.4pt 1.4pt 1.4pt 1.4pt; }
table.small td.header-alt { color: #52619E; border-bottom: solid #52619E 1.0pt; mso-border-bottom-alt: solid #52619E 0.5pt; }
table.small td.header-alt-ac { color: #52619E; border-bottom: solid #52619E 1.0pt; mso-border-bottom-alt: solid #52619E 0.5pt; text-align: center; }
table.small td.header-alt-ar { color: #52619E; border-bottom: solid #52619E 1.0pt; mso-border-bottom-alt: solid #52619E 0.5pt; text-align: right; }
table.small td.data-alt { border-bottom: solid #52619E 1.0pt; mso-border-bottom-alt: solid #52619E 0.5pt; }
table.small td.bb { border-color: #505050; }
table.small td.btb { border-color: #505050; }
table.small td.bt-ar { border-color: #505050; }
table.small td.bb-ar { border-color: #505050; }
table.small td.btb-ar { border-color: #505050; }
table.small td.btb-alt { border-bottom: solid #52619E 1.0pt; mso-border-bottom-alt: solid #52619E 0.5pt; } 
table.small td.btb-ar-alt { border-bottom: solid #52619E 1.0pt; mso-border-bottom-alt: solid #52619E 0.5pt; text-align: right; }
</style>
<p class="spaced"><o:p></o:p><v:shape style="position:absolute;width:167pt;height:670.75pt;z-index:-1;mso-wrap-distance-top:5.65pt;mso-wrap-distance-bottom:5.65pt;mso-position-horizontal:right;mso-position-horizontal-relative:margin;mso-position-vertical:top;mso-position-vertical-relative:margin" stroked="f"><v:textbox style="mso-fit-shape-to-text:f" inset="0,,0">
<br>
<table cellspacing=0 cellpadding=0 class="small" style="background:#EDF1F8;width:100%;">
<tr><td></td><td class="header-alt" style="font-weight: bold;" nowrap>Country</td><td class="data-alt">China</td>
<td> </td></tr><tr><td></td><td class="header-alt" style="font-weight: bold;" nowrap>Sector</td><td class="data-alt">Junk</td><td> </td></tr><tr><td></td><td class="header-alt" style="font-weight: bold;" nowrap>Transaction type</td><td class="data-alt">Other</td><td> </td></tr><tr><td></td><td class="header-alt" style="font-weight: bold;" nowrap>outburst date</td><td class="data-alt">September 2001</td><td> </td></tr><tr><td></td><td class="header-alt" style="font-weight: bold;" nowrap>another junk</td><td class="data-alt">10.6x 2000 P/E</td><td>   </td></tr><tr><td></td><td class="header-alt" style="font-weight: bold;" nowrap>Val method</td><td  class="data-alt">Cost less provision</td><td> </td></tr><tr><td></td><td class="header-alt"  style="font-weight: bold;" nowrap>Internet</td><td class="data-alt">-</td><td>   </td></tr><tr><td></td><td class="header-alt" style="font-weight: bold;" nowrap>Current  Multiple</td><td class="data-alt">-</td><td> </td></tr><tr><td></td><td class="header-alt"  style="font-weight: bold;" nowrap>Enter value</td><td class="data-alt">-</td><td>   </td></tr><tr><td></td><td class="header-alt" style="font-weight: bold;" nowrap>Equality  value</td><td class="data-alt">-</td><td> </td></tr><tr><td></td><td class="header-alt" style="font-     weight: bold;" nowrap>Role</td><td class="data-alt">Follow</td><td> </td></tr><tr><td></td><td     class="header-alt" style="font-weight: bold;" nowrap>Key   mythbusters</td><td class="data-alt">Warnor sisters</td><td> </td></tr><tr><td></td><td  class="header-alt" style="font-weight: bold;" nowrap>Board rep</td><td class="data- alt">ChekcName2</td><td> </td></tr><tr><td></td><td class="header-alt" style="font-weight: bold;"   nowrap>Investment manager</td><td class="data-alt">Angoor</td><td> </td></tr><tr><td></td><td class="header-alt" style="font-weight: bold;" nowrap>BEAM</td><td class="data-alt">-</td><td> </td></tr><tr><td></td><td class="header-alt" style="font-weight: bold;" nowrap>Number of employees</td><td class="data-alt">90</td><td> </td></tr></table><br></v:textbox>
<w:wrap type="topAndBottom" anchorx="margin" anchory="margin"/></v:shape><v:shape     e="position:absolute;width:315pt;z-index:-3;mso-wrap-distance-top:5.65pt;mso-wrap-distance- bottom:5.65pt;mso-position-horizontal:right;mso-position-horizontal-relative:margin;mso-position-vertical:bottom;mso-position-vertical-relative:margin" stroked="f"><v:textbox style="mso-fit-shape- to-text:t" inset="0,,0,0"><p><v:shape style="width:104.775mm;height:44.979mm"><v:imagedata src="../inc/read-image-data.asp?imageid=7146"/></v:shape></p></v:textbox><w:wrap  type="topAndBottom"    anchorx="margin" anchory="margin"/></v:shape><SPAN>
<p class="spaced"></SPAN><SPAN><o:p>&nbsp;</o:p></SPAN></P>
<p class=MsoNormal>&nbsp;</p>
</div>
</body>
</html>

person Vishal Rathaure    schedule 23.07.2014    source источник


Ответы (2)


**Из моего опыта. **

Добавьте space перед *. Т.к. v\: * — селектор, а v\:* — странное имя тега) и добавить display css правило, для меня это было критично, то визуализирую VML в IE:

<style type="text/css">
v\: * { behavior: url(#default#VML);display:inline-block; }
</style>

Также у вас может быть опечатка здесь:

<v:shape     e="position:absolute;
person Pinal    schedule 23.07.2014

Я нашел свой ответ! спасибо Варуну Гулати, для всех, кто может бороться с такой проблемой, решение состоит в том, чтобы заменить

<v:shape></v:shape>

с

<v:rect xmlns:v="urn:schemas-microsoft-com:vml"></v:rect> tags in the code .

С уважением и благодарностью ко всем, кто подумал над этим и/или ответил.

Вишал

person Vishal Rathaure    schedule 24.07.2014