Print pictures or logo.. help

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mario

    Print pictures or logo.. help

    I could you print jpg or bmp from the printer commands

    I tried something like ;

    Printer.picture paint ("92.bmp")
    printer.enddoc

    Doesn't work.. I want to be able to print a logo or a picture in a page
    with my other printer.print statements.. is that possible ?

    Thank in advance..

    I'm using VB6

    --
    Mario Tardif
    ufoman2@sympati co.ca


  • Miles

    #2
    Re: Print pictures or logo.. help

    Make a form with a picturebox on it. Then use the printer command to
    print the form. Note though that the resolution will be at the screen
    resolution making your print look poor. The way around that is to
    create a large form, much larger than the screen with the same aspect
    ratio as your printer. Keep that form hidden and use it to print.

    Mario wrote:
    [color=blue]
    > I could you print jpg or bmp from the printer commands
    >
    > I tried something like ;
    >
    > Printer.picture paint ("92.bmp")
    > printer.enddoc
    >
    > Doesn't work.. I want to be able to print a logo or a picture in a page
    > with my other printer.print statements.. is that possible ?
    >
    > Thank in advance..
    >
    > I'm using VB6
    >
    > --
    > Mario Tardif
    > ufoman2@sympati co.ca
    >
    >[/color]

    Comment

    • J French

      #3
      Re: Print pictures or logo.. help

      On Wed, 19 Nov 2003 23:30:45 -0500, "Mario" <ufoman2@sympat ico.ca>
      wrote:
      [color=blue]
      >I could you print jpg or bmp from the printer commands
      >
      >I tried something like ;
      >
      >Printer.pictur epaint ("92.bmp")
      >printer.endd oc
      >
      >Doesn't work.. I want to be able to print a logo or a picture in a page
      >with my other printer.print statements.. is that possible ?[/color]

      Printer.PaintPi cture ....

      Comment

      • Mario

        #4
        Re: Print pictures or logo.. help

        Ya but, I tried that.. it works...

        But, I want to be able to ad stuf on my page, by currentx... and currenty..
        and finish it with a printer.enddoc ... if I print the form.. I can't do
        that.. unless you know another way.. I know.. I could created eveything on
        the hiden form.. buth is that the only way ?

        It's not possible to print a picture box anywhere on printer.print command
        at a precise place ?

        Thank's

        Mario




        Comment

        • J French

          #5
          Re: Print pictures or logo.. help

          On Thu, 20 Nov 2003 07:03:18 -0500, "Mario" <ufoman2@sympat ico.ca>
          wrote:
          [color=blue]
          >Ya but, I tried that.. it works...
          >
          >But, I want to be able to ad stuf on my page, by currentx... and currenty..
          >and finish it with a printer.enddoc ... if I print the form.. I can't do
          >that.. unless you know another way.. I know.. I could created eveything on
          >the hiden form.. buth is that the only way ?
          >
          >It's not possible to print a picture box anywhere on printer.print command
          >at a precise place ?[/color]

          Do a Google on the NG for posts by Mike Williams
          - he has answered this problem ... many times

          Comment

          • edoepke

            #6
            Re: Print pictures or logo.. help

            Printer.PaintPi cture Form1.Picture1. Picture, 100, 100, 1065, 1065

            'Prints a 1" x 1" Logo in the top left corner of a sheet from a picturebox
            (Picture1) placed on your form.

            Printer.PaintPi cture Form1.Picture2. Picture, 400, 13000, 4065, 1065

            'Prints a 1" x 3" Image in the Bottom left of a sheet from a picturebox
            (Picture2) placed on your form.

            Play with the X/Y coordinates and you can print almost anything, anywhere
            and any size that you want.


            "Mario" <ufoman2@sympat ico.ca> wrote in message
            news:anXub.1315 7$iT4.1576868@n ews20.bellgloba l.com...[color=blue]
            > I could you print jpg or bmp from the printer commands
            >
            > I tried something like ;
            >
            > Printer.picture paint ("92.bmp")
            > printer.enddoc
            >
            > Doesn't work.. I want to be able to print a logo or a picture in a page
            > with my other printer.print statements.. is that possible ?
            >
            > Thank in advance..
            >
            > I'm using VB6
            >
            > --
            > Mario Tardif
            > ufoman2@sympati co.ca
            >
            >[/color]


            Comment

            • Mario

              #7
              Re: Print pictures or logo.. help

              Thank you.. just before I read this post.. I found it.. I was missing the
              location x,y in the Printer.PaintPi cture command..

              Thank you very much anyway.. This post will probebly help other people

              Mario


              Comment

              Working...