我如何保存的PrintDocument到一个文件? [英] How can I save a PrintDocument to a file?
本文介绍了我如何保存的PrintDocument到一个文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经创建在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";
这篇关于我如何保存的PrintDocument到一个文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文