使用C#进行Word自动化 [英] Word automation using C#

查看:139
本文介绍了使用C#进行Word自动化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我想使用c#创建Word文档,现在我完成了使用Word DLL创建简单Word文档的任务.

现在我的要求是通过c#代码对创建的Word文档进行更多自动化,所需的自动化方法如下所述...

->定义页眉和页脚,页脚包含页码,而页眉包含一些文本,但是我需要在奇数页和偶数页上更改页眉,这是单词``Different Odd&活动页面".

->定义固定页面的大小,并且需要从4个不同的侧面定义页边距.

所以请帮助我简化我的要求.

谢谢,

/> Kaushal.

Hello,

I want to create word document using c#,now i did the task to create simple word document using word DLL.

now my requirement is to make more automation on created word document through c# code,required automation as describe below...

-> Define header and footer,footer contains page number,while header contains some text but i need that header change on odd and even    pages,which is property of word "Different Odd & Event Pages".

-> define the fix page size,and need to define margin from 4 different side.

so please help me to short out my requirements.

Thanks,

Kaushal.

推荐答案

可能在这里找到一些答案:http://msdn.microsoft.com/zh-cn /vbasic/ms789115.aspx
May be you find some answers here: http://msdn.microsoft.com/en-us/vbasic/ms789115.aspx


这篇关于使用C#进行Word自动化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆