如何在C#中编程实现,向WORD模板中固定的位置填入数据?(例如就象介绍信的套打)
解决方案 »
- 关于Encoding.Unicode.GetBytes字符和字节转换的问题。
- 谁给个利用Hook OpenProcess()防止结束自己的程序的代码(超急)
- 如何删除2个相关联表中的数据
- 客户端给asp.net页面传参数的问题
- 我用C#做winfrom怎么能让一个窗口只弹出一次呀?我新来的没分..抱歉..
- 卢彦的《利用XML实现通用WEB报表打印》,谁把代码调通了?急呀!
- DataGrid動態綁定列?
- gridcontrol建立主从表的问题
- [请教]WinForm下如何做一个教程或提示似的东西
- 请指教,当我用 Encoding.ASCII.GetBytes("haha"); 得到的byte[] buffer, 却无法用buffer.ToString(); 来得到string ?
- C#中 单选框的问题??小女子跪求。。。
- TreeListView
Microsoft.Office.Interop.Word.ApplicationClass ac = new Microsoft.Office.Interop.Word.ApplicationClass();
object template = Application.StartupPath + "\\xwbl.dot";
object newTemplate = Missing.Value;
object documentType = Missing.Value;
object visible = true;
Microsoft.Office.Interop.Word.Document wordDoc = ac.Documents.Add(ref template, ref newTemplate, ref documentType, ref visible);
wordDoc.Activate(); object lblStartYear = "lblStartYear";
if (ac.ActiveDocument.Books.Exists("lblStartYear"))
{
ac.ActiveDocument.Books.get_Item(ref lblStartYear).Select();
ac.Selection.TypeText("2046");
}