Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在创建一个单词处理器,我想向它添加一个 prInt 控件。我有一个richtextbox,我希望打印richtextbox 的完整rtf,而不仅仅是纯文本。
我该怎么做?
我终于找到了一种方法。这还远远不够,所以欢迎提出其他建议......
我的代码打开 cmd,然后通过写字板打印文件。
Process.Start("cmd.exe", "/C choice /C Y /N /D Y /T 3 & write.exe /p " + filepath)