HELP WITH A VISUAL BASIC/STUDIO PROBLEM

Thread: HELP WITH A VISUAL BASIC/STUDIO PROBLEM

  1. Detector's Avatar

    Detector said:

    Info 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.
    A wise man once said " "
     
  2. Detector's Avatar

    Detector said:

    Default 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
    A wise man once said " "
     
  3. Detector's Avatar

    Detector said:

    Default Re: HELP WITH A VISUAL BASIC/STUDIO PROBLEM

    can anyone help?
    A wise man once said " "
     
  4. Mystical_2K's Avatar

    Mystical_2K said:

    Default 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
    You know he grew up as a little shitspark from the old shitflint and then he turned into a shitbonfire and driven by the winds of his monumental ignorance he turned into a raging shitfirestorm. If I get to be married to Barb I'll have total control of Sunnyvale and then I can unleash the shitnami tidal wave that will engulf Ricky and extinguish his shitflames forever. And with any luck he'll drown in the undershit of that wave. Shitwaves.