且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何以编程方式打印报告而不是单击vb.net中的打印按钮

更新时间:2023-12-06 10:20:04

如果我理解正确,您目前只使用报告查看器及其打印按钮。所以现在你想打印而不必先在报告查看器中看到预览。这听起来像是一个非常常见的请求,您应该尝试搜索 google [ ^ ]首先。



这是我在谷歌搜索中发现的一篇MSDN文章,可能正是您所寻找的:

解决方法:打印无预览的本地报告 [ ^ ]
If I understand correctly, you are currently just using the report viewer and it's print button. So now you want to print without first having to see the preview in the report viewer. This sounds like a pretty common request, you should probably have tried to search google[^] first.

Here is an MSDN article that I found in the google search that might be exactly what you are looking for:
Walkthrough: Printing a Local Report without Preview[^]