dcsimg
Results 1 to 4 of 4

Thread: [RESOLVED] Print .bmp file in vb6

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2007
    Posts
    43

    Resolved [RESOLVED] Print .bmp file in vb6

    i need a code to print a .bmp file in vb6, i have managed to print out a .txt file but not a .bmp.
    Hope anyone could help
    many thanks

  2. #2
    Hyperactive Member
    Join Date
    Jun 2006
    Posts
    372

    Re: Print .bmp file in vb6

    save the bitmap, the use shell + mspaint to auto print it:

    call shell("%compec% /c mspaint.exe " & filename & " /p")

    this should work, very simple.

  3. #3
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    40,126

    Re: Print .bmp file in vb6

    How are you currently printing?

    If you are using the Printer object (eg: Printer.Print "the text") then you can simply use the PaintPicture method, eg:
    Code:
    printer.PaintPicture Picture1.Picture, 0, 0

  4. #4

    Thread Starter
    Member
    Join Date
    Feb 2007
    Posts
    43

    Re: Print .bmp file in vb6

    I have tried it and works like a beuty!!!THANKS VERY MUCH GUYS!!!

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width