hi all,
i am using vb.net 2005 to develop senior project system but i have one problem which is that how can i print images from array of picturebox and preview all images in the print preview dialog(in more pages not only one page)
Printable View
hi all,
i am using vb.net 2005 to develop senior project system but i have one problem which is that how can i print images from array of picturebox and preview all images in the print preview dialog(in more pages not only one page)
how do you want to do it? one page in a print preview for every picturebox?
not one page in a print preview for every picturebox depend in the image size may be one image in one page and the second and third image in the second page and so on but i want to preview all pages in print preview dialog before the user print image( he or she can preview all images before printing)
Please help me because there is no enough time
the concept would consist of writing out each image to the printdocument, and keeping a running total of the height of each picture so you know when you should print to the next page or print on the existing page. You would do this until all images are printed.
If you are not familiar with using the printdocument class, and drawing with GDI+, then you should look into that, because those are the 2 main concepts here.