469,271 Members | 904 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,271 developers. It's quick & easy.

Print pictures or logo.. help

I could you print jpg or bmp from the printer commands

I tried something like ;

Printer.picturepaint ("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
uf*****@sympatico.ca
Jul 17 '05 #1
6 11928
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:
I could you print jpg or bmp from the printer commands

I tried something like ;

Printer.picturepaint ("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
uf*****@sympatico.ca


Jul 17 '05 #2
On Wed, 19 Nov 2003 23:30:45 -0500, "Mario" <uf*****@sympatico.ca>
wrote:
I could you print jpg or bmp from the printer commands

I tried something like ;

Printer.picturepaint ("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 ?


Printer.PaintPicture ....
Jul 17 '05 #3
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


Jul 17 '05 #4
On Thu, 20 Nov 2003 07:03:18 -0500, "Mario" <uf*****@sympatico.ca>
wrote:
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 ?


Do a Google on the NG for posts by Mike Williams
- he has answered this problem ... many times
Jul 17 '05 #5
Printer.PaintPicture 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.PaintPicture 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" <uf*****@sympatico.ca> wrote in message
news:an*********************@news20.bellglobal.com ...
I could you print jpg or bmp from the printer commands

I tried something like ;

Printer.picturepaint ("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
uf*****@sympatico.ca

Jul 17 '05 #6
Thank you.. just before I read this post.. I found it.. I was missing the
location x,y in the Printer.PaintPicture command..

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

Mario
Jul 17 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Colin J. Williams | last post: by
2 posts views Thread by Balamurali C | last post: by
reply views Thread by Anthony Nystrom | last post: by
5 posts views Thread by tabani | last post: by
1 post views Thread by DBQuestions | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.