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.
将 FlowDocumentReader.Print() 打印为 PDF 时如何设置默认文件名? 不是硬编码的名称——我想为每个 Print 设置一个默认的 FileName。 而且他们不是每次都打印到 PDF - 用户可以选择 PDF 作为打印机。
FlowDocumentReader.Print 方法
看看这两个答案:
VB.NET 中的一个可以根据您的喜好轻松转换为 c#
或者这个
在这两种情况下,我认为仍然存在一些问题,因为我已经扫描了答案。但它可能会给你一些线索;)