 |
humberto Level: VB Lord
 Registered: 13-01-2005 Posts: 246
|
print TIF picture
Hi,
I need to write a LabView application that take TIF picture file from
a disk and print it using the default printer which is connecting to
the computer.
Any idea how to do something like this ?
Thank you,
[Edited by humberto on 26-01-2005 at 06:26 PM GMT]
|
|
26-01-2005 at 05:24 PM |
|
|
Goran Level: Moderator
 Registered: 16-05-2002 Posts: 1681
|
Re: print TIF picture
Load image in PictureBox controla and use Printer's PaintPicture method to print graphics on printer, followed by the EndDoc method.
____________________________
If you find the answer helpful, please mark this topic as solved.
|
|
26-01-2005 at 11:06 PM |
|
|
humberto Level: VB Lord
 Registered: 13-01-2005 Posts: 246
|
Re: print TIF picture
That is what I thought but an PictureBox control can not load
tif when i try to load i get (Invalid picture) Msg
|
|
27-01-2005 at 06:31 AM |
|
|
Goran Level: Moderator
 Registered: 16-05-2002 Posts: 1681
|
Re: print TIF picture
Interesting....I can load it with no problems. I didnt have any tiff image on computer, so I downloaded it from internet, and I am not sure if it IS tiff image or someone just change its extension. I tried it in design time (chaning type to all files, not just image files), and in run time with LoadPicture method.
If oyu still cant load tiff directly, then the next step will be using GDI+, I cant think of any other way.....
____________________________
If you find the answer helpful, please mark this topic as solved.
|
|
27-01-2005 at 12:03 PM |
|
|
Goran Level: Moderator
 Registered: 16-05-2002 Posts: 1681
|
Re: print TIF picture
Nope, you were right, it seems that it wasnt the real tiff image I downloaded. Then, I cant think of any other way than to use GDI library. Try this link to see how it works
____________________________
If you find the answer helpful, please mark this topic as solved.
|
|
27-01-2005 at 05:26 PM |
|
|
humberto Level: VB Lord
 Registered: 13-01-2005 Posts: 246
|
Re: print TIF picture
Thanks Goran i will look the link
[Edited by humberto on 27-01-2005 at 07:44 PM GMT]
|
|
27-01-2005 at 06:43 PM |
|
|
humberto Level: VB Lord
 Registered: 13-01-2005 Posts: 246
|
Re: print TIF picture
Thanks Goran this work fine
|
|
28-01-2005 at 01:12 PM |
|
|
|
|
 |
 |