473,327 Members | 2,074 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

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 12111
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jay | last post by:
Hi I would like to generate rtf code of the picture/image programatically without using richtext box or clip board To be more specific I want to create .rtf file of image/pictures Need...
3
by: Colin J. Williams | last post by:
Python advertises some basic service: C:\Python24>python Python 2.4.1 (#65, Mar 30 2005, 09:13:57) on win32 Type "help", "copyright", "credits" or "license" for more information. >>> With...
2
by: Balamurali C | last post by:
Hi All I'm having one problem, since im debuging this last one week I'm not able to do. Problem: In my webage I have two Frames(top & bottom) in the top frame I'm displaying some...
0
by: Anthony Nystrom | last post by:
I am having trouble with changing printer settings before I raise either the pagesetup dialog or the print preview dialog... Changing the printer name is easy, but I am also trying to change the...
12
by: defience | last post by:
Hi, I'm new to Python and need some help with this program. I'm trying to take 10 jumbled words at a time and have the program unscramble them and then print them out like: word1,word2,word3, etc. ...
5
by: tabani | last post by:
I wrote the program and its not giving me correct answer can any one help me with that please and specify my mistake please it will be highly appreciable... The error arrives from option 'a' it asks...
0
angstangel
by: angstangel | last post by:
hello. :) we have a project in school which requires us to develop a database. I have problems in printing pictures of the whole table. when i print the whole table, only one picture is displayed for...
1
by: DBQuestions | last post by:
I'm having a lot of trouble understanding what I should do. I think I've read too many responses on several groups...my brain is fried! I have a form to make different category selections and it...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.