Close

Results 1 to 4 of 4
  1. #1
    Inactive
    Detector's Avatar
    Join Date
    Jun 2001
    Location
    Grim North
    Posts
    7,452
    Thanks
    2,573
    Thanked:        2,696
    Karma Level
    1108

    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. #2
    Inactive
    Detector's Avatar
    Join Date
    Jun 2001
    Location
    Grim North
    Posts
    7,452
    Thanks
    2,573
    Thanked:        2,696
    Karma Level
    1108

    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. #3
    Inactive
    Detector's Avatar
    Join Date
    Jun 2001
    Location
    Grim North
    Posts
    7,452
    Thanks
    2,573
    Thanked:        2,696
    Karma Level
    1108

    Default Re: HELP WITH A VISUAL BASIC/STUDIO PROBLEM

    can anyone help?
    A wise man once said " "

  4. #4
    DF VIP Member
    Mystical_2K's Avatar
    Join Date
    Jun 2002
    Location
    Sunnyvale
    Posts
    4,636
    Thanks
    1,164
    Thanked:        957
    Karma Level
    672

    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.

    Thanks to Mystical_2K

    Detector (20th December 2014) 


Similar Threads

  1. Visual Basic + MSN
    By Spennyboy in forum The Dog and Duck
    Replies: 7
    Last Post: 9th August 2004, 11:33 PM
  2. Visual basic
    By hitmandk1985 in forum Website Coding & Graphics
    Replies: 4
    Last Post: 11th June 2003, 12:19 PM
  3. Visual Basic for Applications - API(?) Problem
    By Matt Kutner in forum Programming
    Replies: 11
    Last Post: 5th March 2003, 11:21 AM
  4. Visual Basic 6
    By Digi Program in forum Website Coding & Graphics
    Replies: 2
    Last Post: 15th October 2002, 08:11 PM
  5. Visual Studio.net PROBLEM
    By manOFice in forum PC Software
    Replies: 1
    Last Post: 17th September 2002, 02:02 AM

Social Networking Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •