HELP WITH A VISUAL BASIC/STUDIO PROBLEM
OK peeps, basically I have a program called blurayprinter and im in the middle of updating it to the very latest edition. one of those updates is to allow people to print out their own passport photos but currently I can only print one picturebox onto the a4 paper which is a waste. what id like to do is possibly have 6 of the same images on the same a4 paper. ive tested adding more pictureboxes and copying the image from one picbox to the other. but when printing they do not print out properly.
so is there any way to copy a picturebox 6 times and have them all print out onto one a4?
ive checked all over the net for examples but I cannot find anything at all.
cheers det.
Re: HELP WITH A VISUAL BASIC/STUDIO PROBLEM
Dim pd AsPrintDialog = NewPrintDialog()
PrintDialog1.Document = PrintDocument1
Dim result AsDialogResult = PrintDialog1.ShowDialog()
If (result.Equals(DialogResult.OK)) Then
PrintDocument1.DefaultPageSettings.Landscape =
True
PrintDocument1.Print()
EndIf
Re: HELP WITH A VISUAL BASIC/STUDIO PROBLEM
Re: HELP WITH A VISUAL BASIC/STUDIO PROBLEM
Hi Det,
i think the simple answer is no, you cant string picturebox's together, you need to create an image object and manually copy the photos into it at certain positions
i have done something similar with images before in C#,
i created a new image (blank) and then copied the original images (your photos in this case) into the new canvas at certain positions
so lets say your passport pics are 10x10 pixels wide and you want a gap of 5 pixels in between them (but not on the edges)
create a new blank image of 40x25 (width x height)
copy the first passport photo to 0x0
copy the second one to 15x0
copy the second one to 30x0
copy the third one to 0x15
copy the second one to 15x15
copy the second one to 30x15
that will create a collage of the images, then just print that out