在单独的页面上打印多张图像
问题描述:
亲爱的朋友,
我正在使用C#开发Windows应用程序,其中在SQL数据库(字节码格式)中存储了10张图像.
现在,我想检索该图像并预览并打印.
我尝试使用
Dear friends,
I am developing a windows application using c# in which i have 10 images stored in my SQL database (byte code format).
Now i want to retrieve that images and preview them and print them.
I tried with a
printDocument
,但它一次只能预览和打印一张图像.有什么解决方案可以让我拍摄所有图像进行预览并在单独的页面上打印.
提前谢谢.
:-)
but it allows me to preview and print only one image at a time. Is there any solution so that i can take all images for preview and print on separate pages.
Thanks in advance.
:-)
答
如本例所示: ^ ],PrintPageEventArgs具有一个属性称为 HasMorePages [
As you can see in this sample: http://msdn.microsoft.com/en-us/library/system.drawing.printing.printdocument.printpage.aspx[^], PrintPageEventArgs has a property called HasMorePages[^]. You can use this to add more and more pages - images in your case.