从C#应用程序将参数值传递给单词文件并在每页中添加页眉和页脚 [英] Pass Parameter Value to Words File from C# Application and Add header and footer in each page
本文介绍了从C#应用程序将参数值传递给单词文件并在每页中添加页眉和页脚的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
显示标题----------------------在每一页
客户名称:[ClientName]
日期:[日期]
患者姓名:[姓名]
年龄:[年龄]性别:[S]
推荐人:[Refdby]
标本:[标本]
第二页显示网格数据---------------------------- ------
每页显示页脚
请告诉我如何将C#中的值传递给word doc文件并在其上打印
Display Header---------------------- in every Page
Client Name : [ClientName]
Date: [Date]
Name of the patient : [Name]
Age : [Age] Sex: [S]
Referred by : [Refdby]
Specimen : [specimen]
Grid data Display in second page ----------------------------------
Display Footer in every page
Please tell me How I can passed the value from C# to word doc file and make a print on it
推荐答案
你需要研究 Microsoft.Office.Interop.Word命名空间 [ ^ ]用于操纵Word文档。您也可以使用Google查找教程和示例。
You need to study the Microsoft.Office.Interop.Word namespace[^] for manipulating Word documents. You can also use Google to find tutorials and samples.
这篇关于从C#应用程序将参数值传递给单词文件并在每页中添加页眉和页脚的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文