用C#打印图像 [英] Print Images in C#

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

问题描述

你好;



我从数据库中提取图像并将它们存储在< list>中图片;

然后我想打印那个列表中的所有图像查看每张图片的纸张...



我试图循环图像列表然后使用e.graphic.drawimage ...

但它显示空打印对话框pront预览....



用于打印图像列表中所有图像的任何代码???

reagrds ...

解决方案



您可以创建PrintDocument,然后调用Print方法。它不显示打印对话框,因为您可以手动设置选项。



http://msdn.microsoft.com/en-us/library/system.drawing.printing.printdocument.aspx [ ^ ]



问候

Robert


Hello ;

I am extracting the images from database and store them in <list> images;
and then I want to print all the images in that list view each picture in saperated paper...

I tried to loop in the imagelist then to use e.graphic.drawimage...
but it show emptye print dialog box pront preview ....

any code for printing all the images in imagelist???
reagrds...

解决方案

Hi,
you can create a PrintDocument, then call the Print method. It does not show a Print Dialog, since you can manually set the options.

http://msdn.microsoft.com/en-us/library/system.drawing.printing.printdocument.aspx[^]

Regards
Robert


这篇关于用C#打印图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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