打印没有预览的报告 [英] Printing A Report Without Preview

查看:124
本文介绍了打印没有预览的报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我在VS2012上制作了一个软件,我在报告查看器上做了一个报告

I made a software on VS2012 and I did a report on report viewer

这个报告是收据对于小隔间食品店的顾客

this report is a receipt for customers at a cubicle food shop

如何在没有客户进行预览和打印以及打印机选择的情况下打印报告(虽然它是默认的,所以他只需要点击确定)

How can i print the report without the client going through preview and print and printer selection (although its default so he just has to click ok)

我需要将打印件放在一个直接打印报告的按钮上,无需预览或任何其他内容

I need to put the print on a button that prints the report directly without preview or anything

推荐答案

嗨Tony Raoub,

Hi Tony Raoub,

您可以使用 LocalReport 对象和
CreateStreamCallback 回调函数。详细示例代码请参考以下文档。希望对您有所帮助。

You could use the LocalReport object and the CreateStreamCallback callback function. Detailed sample code, please refer to following document. Hope that could help you.

https://msdn.microsoft.com/en-us/library/ms252091.aspx?f=255&MSPPError=-2147217396

最好的问候,

Weiwei

Best Regards,
Weiwei


这篇关于打印没有预览的报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆