[英]Is there a way to automatically generate and export a PDF with VB.NET using Crystal Reports?
我只是想节省一些时间,而不是每次都必须按导出、命名 pdf 并选择一个文件夹的过程。 但是我很难找到一种使用 vb.net 和水晶报告自动将 pdf 导出到特定文件夹的方法。 我知道如果我使用reportdocument.PrintToPrinter(1, False, 0, 0)
它会自动打印。 是否有与此等效的方法,但是将 pdf 导出到特定文件夹?
根据文档,它可以这样实现:
reportdocument.ExportToDisk(ExportFormatType.PortableDocFormat, exportPath + "Filename.pdf")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.