有没有哪位大侠做过类似的方法啊,麻烦告知小弟下。万分感谢。
解决方案 »
- dos 命令实现 选中 一个文件的“在网络上共享这个文件夹”项,我知道net share 但是它会默认选中“允许网络用户更改我的文件夹”,我不想要这一项。各位高手帮帮忙!小弟在线等!
- 枚举问题 请哪位大侠指点
- 100分求助:如何让方框随着鼠标Click而移动啊?
- WebForm中的TextBox如何实现类似winform中的leave的事件
- JavaScript小问题?散分!
- 请教C# 中的同摩运算符是什么(VB 中的 mod)
- 附件下载时提示“与服务器的连接被重置”,不能下载,怎么办?
- 怎样将服务器端(*.aspx.cs)变量传到客户端(*.aspx)
- help
- 关于MessageQueue
- 关于dll文件加密问题
- 【Winfrom】 新手求教,在线等
var doc = app.Workbooks.Open(file);
var target = Path.GetTempFileName();
doc.SaveAs(target, Microsoft.Office.Interop.Excel.XlFixedFormatType.xlTypeXPS);
app.Quit();和var app = new Microsoft.Office.Interop.Word.Application();
var doc = app.Documents.Open(file);
var target = Path.GetTempFileName();
doc.SaveAs2(target, Microsoft.Office.Interop.Word.WdExportFormat.wdExportFormatXPS);
app.Quit(Microsoft.Office.Interop.Word.WdSaveOptions.wdDoNotSaveChanges);对于PPT也是一样的。
2、程序中打印输出到“Foxit PDF Printer”打印机。