由网友(心稳路正精彩)分享简介:我已经创建在C#中PrintDocument的,我可以打印出来,但现在我想将它保存到一个文件。是否有可能将其保存为Word文档?I've created a PrintDocument in C#, I can print it, but now I want to save it to a file.Is it...
我已经创建在C#中PrintDocument的,我可以打印出来,但现在我想将它保存到一个文件。 是否有可能将其保存为Word文档?
I've created a PrintDocument in C#, I can print it, but now I want to save it to a file. Is it possible to save it as a word document?
推荐答案
根据你的意图,这可能是有用的:
Depending on your intent, this might be useful:
如果你的目标是在以后的日子这将工作重新打印:
If your goal is to reprint it at a later date this will work:
print_doc.PrinterSettings.PrintToFile = true;
print_doc.PrinterSettings.PrintFileName = "backup.prn";
相关推荐
最新文章