doc 你以为是txt啊
他有自己的文件格式
他有自己的文件格式
解决方案 »
- C#截取字符串中首尾
- 关于接口继承的问题,继承接口的类,不是实现接口的方法,子类才实现,怎么写?
- 寻求文本编辑器控件,要求有比较好的编辑排版功能
- 仿QQ折叠菜单如何实现? 高分急求!!!
- 当在MDI主窗口中打开一个MDIChild 子窗口时,如何才能做到防止子窗最大化时标题闪烁效果!
- c1flexgrid绑定 数据后 如何解绑并保留数据到c1flexgrid
- Pocket PC2003
- 请高手指点一下,谢谢了!
- 请教:在c#中如何调用*.EXE文件?
- C#中使用OLEDB如何彻底删除DBF文件中的数据
- 紧急问题:.net中提示无法设置列“user_pwd”。此值违反了此列的 MaxLength 限制。
- 请问怎么在ASP.NET2.0里打印网页指定的内容
Word.Document thisDocument = new Word.Document();
object missingValue = Type.Missing;
object myTrue = true;
object fileName = "\\TestFile1.rtf";
wordApplication.Visible = true;
thisDocument = wordApplication.Documents.Open(ref fileName, ref missingValue,
ref myTrue, ref missingValue, ref missingValue, ref missingValue,
ref missingValue, ref missingValue, ref missingValue,
ref missingValue, ref missingValue, ref missingValue,
ref missingValue, ref missingValue, ref missingValue);
Object background = Type.Missing;
Object append = Type.Missing;
Object range = Type.Missing;
Object outputFileName = Type.Missing;
Object from = Type.Missing;
Object to = Type.Missing;
Object item = Type.Missing;
Object copies = Type.Missing;
Object pages = Type.Missing;
Object pageType = Type.Missing;
Object printToFile = Type.Missing;
Object collate = Type.Missing;
Object fileName = Type.Missing;
Object activePrinterMacGX = Type.Missing;
Object manualDuplexPrint = Type.Missing;
Object printZoomColumn = Type.Missing;
Object printZoomRow = Type.Missing;
Object printZoomPaperWidth = Type.Missing;
Object printZoomPaperHeight = Type.Missing;
ThisDocument.PrintOut(ref background, ref append,
ref range, ref outputFileName, ref from, ref to,
ref item, ref copies, ref pages, ref pageType,
ref printToFile, ref collate, ref fileName, ref activePrinterMacGX,
ref manualDuplexPrint, ref printZoomColumn, ref printZoomRow,
ref printZoomPaperWidth, ref printZoomPaperHeight);
CathySun118(斯年) 给的代码,但是没有一点说明注释相信很少有人会看的懂这么长的吧,麻烦能多点提示信息,主要的几步都在做什么呢,还有要导入什么名字空间啊