1.首先是要下载Aspose.Words.dll
2.建立word模板我的模板时会议联系函.doc
3.页面
<
div
id
="top"
>
< ul style ="height:50px;margin:0px;" >
< li style ="float:left;" >
< asp:Button ID ="btnSave" runat ="server" Text ="保 存" Width ="60px" CssClass ="btn" />
< asp:Button ID ="btnExport" runat ="server" Text ="导 出" CssClass ="btn" Width ="60px" OnClick ="btnExport_Click" />
</ li >
</ ul >
</ div >
< div id ="Container" >
< div id ="Header" >
< div id ="Title" >
< ul style ="height:50px;" >
< li > 武汉市政府投资工程审查 </ li >
</ ul >
</ div >
< div id ="TitleSecond" >
< ul style ="height:50px;" >
< li > 会议联系函 </ li >
</ ul >
</ div >
</ div >
< div id ="BodyPage" >
< div class ="Content1" >
< ul style ="height:1px;" >
< li > 市建委基础设施处: </ li >
</ ul >
</ div >
< div class ="Content1" >
< ul style ="height:1px; margin:0px;" >
< li style ="width:30px;float:left" ></ li >
< li style ="float:left;" >
< input id ="TxtDesigner" type ="text" runat ="server" class ="tbxBottom" style ="width: 350px" />
</ li >
< li style ="float:left" > (建设单位)到我办报审的 </ li >
< ul style ="height:50px;margin:0px;" >
< li style ="float:left;" >
< asp:Button ID ="btnSave" runat ="server" Text ="保 存" Width ="60px" CssClass ="btn" />
< asp:Button ID ="btnExport" runat ="server" Text ="导 出" CssClass ="btn" Width ="60px" OnClick ="btnExport_Click" />
</ li >
</ ul >
</ div >
< div id ="Container" >
< div id ="Header" >
< div id ="Title" >
< ul style ="height:50px;" >
< li > 武汉市政府投资工程审查 </ li >
</ ul >
</ div >
< div id ="TitleSecond" >
< ul style ="height:50px;" >
< li > 会议联系函 </ li >
</ ul >
</ div >
</ div >
< div id ="BodyPage" >
< div class ="Content1" >
< ul style ="height:1px;" >
< li > 市建委基础设施处: </ li >
</ ul >
</ div >
< div class ="Content1" >
< ul style ="height:1px; margin:0px;" >
< li style ="width:30px;float:left" ></ li >
< li style ="float:left;" >
< input id ="TxtDesigner" type ="text" runat ="server" class ="tbxBottom" style ="width: 350px" />
</ li >
< li style ="float:left" > (建设单位)到我办报审的 </ li >