none
problem in writing Word 2013 doc using VML RRS feed

  • Question

  • Hi ,

    We have a classic asp application which is generating some word documents.It was working fine on office 2007.

    Now we are upgrading office to 2013,while testing the same Application we found that the generated document is missing a table and a picture in word 2013.we are using vml to write the document, if the vml is depricated what else i can use in my scenario i tried svg with no success.following is the code.

    <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=">
    <title>Investor summary report</title>
    <style>
    @font-face { font-family: Arial; font-size: 8pt; }
    p.MsoNormal, li.MsoNormal, div.MsoNormal { margin:0cm; margin-bottom:.0001pt; font-size:8pt; font-family:"Arial"; }
    p.MsoHeader, li.MsoHeader, div.MsoHeader { margin:0cm; margin-bottom:.0001pt; font-size:8pt; font-family:"Arial"; }
    p.MsoFooter, li.MsoFooter, div.MsoFooter { margin:0cm; margin-bottom:.0001pt; font-size:8pt; font-family:"Arial"; }
    @page Section1 { size:595.3pt 841.9pt;margin:120.5pt 64.35pt 72pt 62.95pt;"") h1;"") f1; }
    div.Section1 { page:Section1; }
                       
    ol { margin-bottom:0cm; }
    ul { margin-bottom:0cm; }
    body { font-family: Arial; font-size: 8pt; }
    table { font-family: Arial; font-size: 8pt; border-collapse: collapse; }
    tr { vertical-align: top; }
    td { padding: 0pt 5.4pt 0pt 5.4pt; }
    td.header { background-color: #DFDFDF; border-bottom: 1pt solid windowtext;  font-weight: bold; }
    td.header-ac { background-color: #DFDFDF; border-bottom: 1pt solid windowtext;  font-weight: bold; text-align: center; }
    td.header-ar { background-color: #DFDFDF; border-bottom: 1pt solid windowtext;  font-weight: bold; text-align: right; }
    td.footer { background-color: #DFDFDF; border-top: 1pt solid #808080;  font-weight: bold; }
    td.footer-ac { background-color: #DFDFDF; border-top: 1pt solid #808080;  font-weight: bold; text-align: center; }
    td.footer-ar { background-color: #DFDFDF; border-top: 1pt solid #808080;  font-weight: bold; text-align: right; }
    .bt { border-top: 1pt solid windowtext;  }
    .bb { border-bottom: 1pt solid windowtext;  }
    .btb { border-top: 1pt solid windowtext;  border-bottom: 1pt solid windowtext;  }
    .bl-ar { border-left: 1pt solid windowtext;  text-align: right; }
    .bt-ar { border-top: 1pt solid windowtext;  text-align: right; }
    .bb-ar { border-bottom: 1pt solid windowtext;  text-align: right; }
    .btb-ar { border-top: 1pt solid windowtext;  border-bottom: 1pt solid windowtext;  text-align: right; }
    .bltrb { border: 1pt solid windowtext;  }
    .bl-light { border-left: 1pt solid #808080;  }
    .bt-light { border-top: 1pt solid #808080;  }
    .bb-light { border-bottom: 1pt solid #808080;  }
    .bl-light-ar { border-left: 1pt solid #808080;  text-align: right; }
    .bt-light-ar { border-top: 1pt solid #808080;  text-align: right; }
    .bb-light-ar { border-bottom: 1pt solid #808080;  text-align: right; }
    .bl-bt-light-ar { border-left: 1pt solid windowtext;  border-top: 1pt solid #808080;  text-align: right; }
    .bb-bl-light-ar { border-bottom: 1pt solid windowtext;  border-left: 1pt solid #808080;  text-align: right; }
    .text-light { color: #808080; }
    p { margin: 0cm; margin-bottom: 0.0001pt; }
    p.keepwithnext { margin: 0;  page-break-after: avoid; }
    .ac { text-align: center; }
    .ar { text-align: right; }
    </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
    <style>
    p { font-family: Arial; color: #505050; line-height: 120%; }
    p.spaced { line-height:12.0pt;  }
    li { margin-top: 0pt; margin-bottom: 0pt; color: #505050; line-height: 120%; }
    strong { color: #505050; }
    table.small { color: #505050; line-height:12.0pt;  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;  }
    table.small td.header-alt-ac { color: #52619E; border-bottom: solid #52619E 1.0pt;  text-align: center; }
    table.small td.header-alt-ar { color: #52619E; border-bottom: solid #52619E 1.0pt;  text-align: right; }
    table.small td.data-alt { border-bottom: solid #52619E 1.0pt;  }
    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;  }
    table.small td.btb-ar-alt { border-bottom: solid #52619E 1.0pt;  text-align: right; }
    </style>
    <p><o:p></o:p><v:shape style=";width:167pt;height:670.75pt;z-index:-1;" stroked="f"><v:textbox  inset="0,,0">
    <table cellspacing=0 cellpadding=0 style="width:100%;">
    <tr>
      
    </tr>
    <!--<tr>
      <td>Equity</td>
      <td>0.0</td>
      <td>0.0</td>
      <td>0.0</td>
    </tr>
    <tr>
      <td>Debt</td>
      <td>10.0</td>
      <td>10.9</td>
      <td>0.0</td>
    </tr>-->
    </table>
    <table cellspacing=0 cellpadding=0 style="width:100%;">
    <tr>
      <td></ td>
      <td nowrap>2%</td>
    </tr>
      
    <tr>
      <td> </td>
      <td nowrap>7%</td>
    </tr>
    </table>
    <br>
    </v:textbox><w:wrap type="topAndBottom" anchorx="margin" anchory="margin"/></v:shape><v:shape style=";width:315pt;z-index:-3;" stroked="f"><v:textbox  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><strong style="font-weight: normal; font-size: 11pt; color: #52619E;"><SPAN>yyyy: </SPAN></STRONG><SPAN>skhsksk.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P>
    <p
    <p style="font-weight: normal; font-size: 11pt; color: #52619E;"><SPAN>dddd: </SPAN></STRONG><SPAN>kdhdhhdi <o:p></o:p></SPAN></P>
    <p><SPAN><o:p>&nbsp;</o:p></SPAN></P><SPAN>
    <p><SPAN><SPAN><strong style="font-weight: normal; font-size: 11pt; color: #52619E;">uuuuu </SPAN></SPAN><SPAN lang=EN-US><SPAN>ddd.<o:p></o:p></SPAN></SPAN></P>
    <p
    <p style="font-weight: normal; font-size: 11pt; color: #52619E;">ddddd: </STRONG></SPAN><SPAN>&nbsp;xxxx <o:p></o:p></SPAN></SPAN></SPAN></P>
    <p></SPAN></SPAN><SPAN><o:p>&nbsp;</o:p></SPAN></P>
    <p
    </div>
    </body>
    </html>


    Wednesday, July 23, 2014 11:24 AM

Answers

All replies

  • Hi,

    Thank you for this inquiry. One of our team members will review this and follow-up.

    Thanks,

    Edgar

    Wednesday, July 23, 2014 4:29 PM
    Moderator
  • I found my sloution ,

    replace the

    <v:shape></v:shape>

    with

    <v:rect xmlns:v="urn:schemas-microsoft-com:vml"></v:rect> 

    tags in the code.

    Thursday, July 24, 2014 4:02 AM
  • Hi Abhishek.Sri, thank you for letting us know that you found a solution to your problem and what it was.

    Josh Curry (jcurry) | Escalation Engineer | Open Specifications Support Team

    Thursday, July 24, 2014 9:01 PM
    Moderator
  • Hi Josh,

    I found the workaround though but still not able to understand that why <v:shape> is not working in word 2013?

    Friday, July 25, 2014 4:26 AM