Close

Results 1 to 4 of 4
  1. #1
    Inactive
    Detector's Avatar
    Join Date
    Jun 2001
    Location
    Grim North
    Posts
    7,483
    Thanks
    2,587
    Thanked:        2,712
    Karma Level
    1040

    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,483
    Thanks
    2,587
    Thanked:        2,712
    Karma Level
    1040

    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,483
    Thanks
    2,587
    Thanked:        2,712
    Karma Level
    1040

    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,660
    Thanks
    1,192
    Thanked:        978
    Karma Level
    671

    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 6 enterprise
    By spade2001 in forum Programming
    Replies: 21
    Last Post: 14th September 2002, 10:51 AM
  2. Floppy problem
    By urbsy in forum PC Problems
    Replies: 8
    Last Post: 7th September 2002, 12:04 AM
  3. F12002 Problem
    By shawtek in forum Microsoft Consoles
    Replies: 9
    Last Post: 31st August 2002, 10:20 AM
  4. Problem with Compaq Armada E500 Laptop
    By Mr Olympia in forum PC Problems
    Replies: 2
    Last Post: 29th August 2002, 02:40 PM
  5. real audio recording problem
    By flypitcher in forum Music Factory
    Replies: 3
    Last Post: 28th August 2002, 11:25 PM

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
  •