-- 作者:upc2neiep
-- 发布时间:8/11/2008 9:23:00 PM
-- 请问如何解决vml导入到word的变形问题?
用vml做了一个折线图,在IE中显示正常 但是导出到word就变形了 一:位置走样,总是跑到下一个节点的位置 二:vml中的问题都挤到一块儿了 vml代码如下: <v:group ID="txbb" style="position:relative;width:800px;height:800px;" coordsize="800,800" xmlns:v="urn:schemas-microsoft-com:vml"> <v:line from="'100,700'" to="'475,700'" strokeColor="#ff0000" strokeweight="1"> <v:stroke EndArrow="Classic"/> </v:line> <v:line from="'100,700'" to="'100,425'" strokeColor="#ff0000" strokeweight="1"> <v:stroke EndArrow="Classic"/> </v:line> <v:line to="25,-1" style="position:absolute;left:75px;top:700px;"> <v:path textpathok="true"/> <v:textpath on="true" style="font:normal normal normal 8pt normal;" string="0"/> </v:line> <v:line from="'100,650'" to="'450,650'" strokeColor="#ff0000" strokeweight="1"> <v:stroke dashstyle="Dot"/> </v:line> <v:line to="25,-1" style="position:absolute;left:75px;top:650px;"> <v:path textpathok="true"/> <v:textpath on="true" style="font:normal normal normal 8pt normal;" string="100"/> </v:line> <v:line from="'100,600'" to="'450,600'" strokeColor="#ff0000" strokeweight="1"> <v:stroke dashstyle="Dot"/> </v:line> <v:line to="25,-1" style="position:absolute;left:75px;top:600px;"> <v:path textpathok="true"/> <v:textpath on="true" style="font:normal normal normal 8pt normal;" string="200"/> </v:line> <v:line from="'100,550'" to="'450,550'" strokeColor="#ff0000" strokeweight="1"> <v:stroke dashstyle="Dot"/> </v:line> <v:line to="25,-1" style="position:absolute;left:75px;top:550px;"> <v:path textpathok="true"/> <v:textpath on="true" style="font:normal normal normal 8pt normal;" string="300"/> </v:line> <v:line from="'100,500'" to="'450,500'" strokeColor="#ff0000" strokeweight="1"> <v:stroke dashstyle="Dot"/> </v:line> <v:line to="25,-1" style="position:absolute;left:75px;top:500px;"> <v:path textpathok="true"/> <v:textpath on="true" style="font:normal normal normal 8pt normal;" string="400"/> </v:line> <v:line from="'100,450'" to="'450,450'" strokeColor="#ff0000" strokeweight="1"> <v:stroke dashstyle="Dot"/> </v:line> <v:line to="25,-1" style="position:absolute;left:75px;top:450px;"> <v:path textpathok="true"/> <v:textpath on="true" style="font:normal normal normal 8pt normal;" string="500"/> </v:line> <v:line from="'150,700'" to="'150,450'" strokeColor="#ff0000" strokeweight="1"> <v:stroke dashstyle="Dot"/> </v:line> <v:line to="25,-1" style="position:absolute;left:114px;top:710px;"> <v:path textpathok="true"/> <v:textpath on="true" style="font:normal normal normal 8pt normal;" string="一月"/> </v:line> <v:line from="'200,700'" to="'200,450'" strokeColor="#ff0000" strokeweight="1"> <v:stroke dashstyle="Dot"/> </v:line> <v:line to="25,-1" style="position:absolute;left:164px;top:710px;"> <v:path textpathok="true"/> <v:textpath on="true" style="font:normal normal normal 8pt normal;" string="二月"/> </v:line> <v:line from="'250,700'" to="'250,450'" strokeColor="#ff0000" strokeweight="1"> <v:stroke dashstyle="Dot"/> </v:line> <v:line to="25,-1" style="position:absolute;left:214px;top:710px;"> <v:path textpathok="true"/> <v:textpath on="true" style="font:normal normal normal 8pt normal;" string="三月"/> </v:line> <v:line from="'300,700'" to="'300,450'" strokeColor="#ff0000" strokeweight="1"> <v:stroke dashstyle="Dot"/> </v:line> <v:line to="25,-1" style="position:absolute;left:264px;top:710px;"> <v:path textpathok="true"/> <v:textpath on="true" style="font:normal normal normal 8pt normal;" string="四月"/> </v:line> <v:line from="'350,700'" to="'350,450'" strokeColor="#ff0000" strokeweight="1"> <v:stroke dashstyle="Dot"/> </v:line> <v:line to="25,-1" style="position:absolute;left:314px;top:710px;"> <v:path textpathok="true"/> <v:textpath on="true" style="font:normal normal normal 8pt normal;" string="五月"/> </v:line> <v:line from="'400,700'" to="'400,450'" strokeColor="#ff0000" strokeweight="1"> <v:stroke dashstyle="Dot"/> </v:line> <v:line to="25,-1" style="position:absolute;left:364px;top:710px;"> <v:path textpathok="true"/> <v:textpath on="true" style="font:normal normal normal 8pt normal;" string="六月"/> </v:line> <v:line from="'450,700'" to="'450,450'" strokeColor="#ff0000" strokeweight="1"> <v:stroke dashstyle="Dot"/> </v:line> <v:line to="25,-1" style="position:absolute;left:414px;top:710px;"> <v:path textpathok="true"/> <v:textpath on="true" style="font:normal normal normal 8pt normal;" string="七月"/> </v:line> <v:line to="25,-1" style="position:absolute;left:275px;top:740px;"> <v:path textpathok="true"/> <v:textpath on="true" style="font:normal normal normal 12pt normal;" string="×××××××"/> </v:line> <v:line from="'125,485'" to="'175,525'" strokeColor="#00ff00" strokeweight="1"> <v:stroke dashstyle="Solid" StartArrow="Oval" EndArrow="Oval"/> </v:line> <v:line to="25,-1" style="position:absolute;left:130px;top:485px;"> <v:path textpathok="true"/> <v:textpath on="true" style="font:normal normal normal 8pt normal;" string="430"/> </v:line> <v:line from="'175,525'" to="'225,500'" strokeColor="#00ff00" strokeweight="1"> <v:stroke dashstyle="Solid" StartArrow="Oval" EndArrow="Oval"/> </v:line> <v:line to="25,-1" style="position:absolute;left:180px;top:525px;"> <v:path textpathok="true"/> <v:textpath on="true" style="font:normal normal normal 8pt normal;" string="350"/> </v:line> <v:line from="'225,500'" to="'275,560'" strokeColor="#00ff00" strokeweight="1"> <v:stroke dashstyle="Solid" StartArrow="Oval" EndArrow="Oval"/> </v:line> <v:line to="25,-1" style="position:absolute;left:230px;top:500px;"> <v:path textpathok="true"/> <v:textpath on="true" style="font:normal normal normal 8pt normal;" string="400"/> </v:line> <v:line from="'275,560'" to="'325,510'" strokeColor="#00ff00" strokeweight="1"> <v:stroke dashstyle="Solid" StartArrow="Oval" EndArrow="Oval"/> </v:line> <v:line to="25,-1" style="position:absolute;left:280px;top:560px;"> <v:path textpathok="true"/> <v:textpath on="true" style="font:normal normal normal 8pt normal;" string="280"/> </v:line> <v:line from="'325,510'" to="'375,620'" strokeColor="#00ff00" strokeweight="1"> <v:stroke dashstyle="Solid" StartArrow="Oval" EndArrow="Oval"/> </v:line> <v:line to="25,-1" style="position:absolute;left:330px;top:510px;"> <v:path textpathok="true"/> <v:textpath on="true" style="font:normal normal normal 8pt normal;" string="380"/> </v:line> <v:line from="'375,620'" to="'425,640'" strokeColor="#00ff00" strokeweight="1"> <v:stroke dashstyle="Solid" StartArrow="Oval" EndArrow="Oval"/> </v:line> <v:line to="25,-1" style="position:absolute;left:380px;top:620px;"> <v:path textpathok="true"/> <v:textpath on="true" style="font:normal normal normal 8pt normal;" string="160"/> </v:line> <v:line to="25,-1" style="position:absolute;left:430px;top:640px;"> <v:path textpathok="true"/> <v:textpath on="true" style="font:normal normal normal 8pt normal;" string="120"/> </v:line> <v:line from="'125,510'" to="'175,500'" strokeColor="#0000ff" strokeweight="1"> <v:stroke dashstyle="Solid" StartArrow="Oval" EndArrow="Oval"/> </v:line> <v:line to="25,-1" style="position:absolute;left:130px;top:510px;"> <v:path textpathok="true"/> <v:textpath on="true" style="font:normal normal normal 8pt normal;" string="380"/> </v:line> <v:line from="'175,500'" to="'225,490'" strokeColor="#0000ff" strokeweight="1"> <v:stroke dashstyle="Solid" StartArrow="Oval" EndArrow="Oval"/> </v:line> <v:line to="25,-1" style="position:absolute;left:180px;top:500px;"> <v:path textpathok="true"/> <v:textpath on="true" style="font:normal normal normal 8pt normal;" string="400"/> </v:line> <v:line from="'225,490'" to="'275,525'" strokeColor="#0000ff" strokeweight="1"> <v:stroke dashstyle="Solid" StartArrow="Oval" EndArrow="Oval"/> </v:line> <v:line to="25,-1" style="position:absolute;left:230px;top:490px;"> <v:path textpathok="true"/> <v:textpath on="true" style="font:normal normal normal 8pt normal;" string="420"/> </v:line> <v:line from="'275,525'" to="'325,500'" strokeColor="#0000ff" strokeweight="1"> <v:stroke dashstyle="Solid" StartArrow="Oval" EndArrow="Oval"/> </v:line> <v:line to="25,-1" style="position:absolute;left:280px;top:525px;"> <v:path textpathok="true"/> <v:textpath on="true" style="font:normal normal normal 8pt normal;" string="350"/> </v:line> <v:line from="'325,500'" to="'375,540'" strokeColor="#0000ff" strokeweight="1"> <v:stroke dashstyle="Solid" StartArrow="Oval" EndArrow="Oval"/> </v:line> <v:line to="25,-1" style="position:absolute;left:330px;top:500px;"> <v:path textpathok="true"/> <v:textpath on="true" style="font:normal normal normal 8pt normal;" string="400"/> </v:line> <v:line from="'375,540'" to="'425,610'" strokeColor="#0000ff" strokeweight="1"> <v:stroke dashstyle="Solid" StartArrow="Oval" EndArrow="Oval"/> </v:line> <v:line to="25,-1" style="position:absolute;left:380px;top:540px;"> <v:path textpathok="true"/> <v:textpath on="true" style="font:normal normal normal 8pt normal;" string="320"/> </v:line> <v:line to="25,-1" style="position:absolute;left:430px;top:610px;"> <v:path textpathok="true"/> <v:textpath on="true" style="font:normal normal normal 8pt normal;" string="180"/> </v:line> <v:line from="'500,475'" to="'525,475'" strokeColor="#00ff00" strokeweight="1"> <v:stroke dashstyle="Solid" EndArrow="Oval"/> </v:line> <v:line from="'525,475'" to="'550,475'" strokeColor="#00ff00" strokeweight="1"> <v:stroke dashstyle="Solid" StartArrow="Oval"/> </v:line> <v:line to="25,-1" style="position:absolute;left:560px;top:475px;"> <v:path textpathok="true"/> <v:textpath on="true" style="font:normal normal normal 8pt normal;" string="2007年度"/> </v:line> <v:line from="'500,425'" to="'525,425'" strokeColor="#0000ff" strokeweight="1"> <v:stroke dashstyle="Solid" EndArrow="Oval"/> </v:line> <v:line from="'525,425'" to="'550,425'" strokeColor="#0000ff" strokeweight="1"> <v:stroke dashstyle="Solid" StartArrow="Oval"/> </v:line> <v:line to="25,-1" style="position:absolute;left:560px;top:425px;"> <v:path textpathok="true"/> <v:textpath on="true" style="font:normal normal normal 8pt normal;" string="2008年度"/> </v:line> </v:group>
|