|
-
November 24th, 2008, 03:07 AM
#1
How to print image (JPG) file through printer?
Hi there,
I am having a problem about the printer in windows XP.
Does anyone know how to print out the image (JPG) file from the printer by c++ and WinAPI?
Any idea will be helpful.
Appreciate it.
James
Last edited by jamesguitar; November 24th, 2008 at 04:11 AM.
Reason: typo
-
November 24th, 2008, 10:53 AM
#2
Re: How to print image (JPG) file through printer?
The idea is to handle this as usual bitmap printing. Load JPG with GDI+, open printer DC, blit an image to DC. End of story.
Best regards,
Igor
-
November 24th, 2008, 03:49 PM
#3
Re: How to print image (JPG) file through printer?
Hey Igor Vartanov,
Thanks, let me do some research about it.
James
-
November 25th, 2008, 07:43 AM
#4
Re: How to print image (JPG) file through printer?
 Originally Posted by Igor Vartanov
The idea is to handle this as usual bitmap printing. Load JPG with GDI+, open printer DC, blit an image to DC. End of story.
No, wrong method.
You don't need at all to load the jpg (and you don't need GDI+ for JPG)
Just print it directly with COM.
-
November 25th, 2008, 11:06 AM
#5
Re: How to print image (JPG) file through printer?
 Originally Posted by Laurentis
Just print it directly with COM.
Please explain this "directly with COM".
Best regards,
Igor
-
November 25th, 2008, 10:37 PM
#6
Re: How to print image (JPG) file through printer?
Hi
Thanks Laurentis.
But I am confused too.
Would u please have more explanation.
Also I am thinking another way.
Actually, I am modifying a virtual printer code.
So, when the user generate the "image" file through virtual printer, I need to print the file out via the real printer too.
Therefore, I am thinking whether it is possible to copy the print job to the real printer's queue in the same time.
Sorry, I am a newbie in Winapi programming.
Any idea is appreciated.
Thanks.
James
-
November 26th, 2008, 06:54 AM
#7
Re: How to print image (JPG) file through printer?
 Originally Posted by jamesguitar
Hi
Thanks Laurentis.
But I am confused too.
Would u please have more explanation.
Yes, with COM and IE (you let IE doing all the printing)
see news://194.177.96.26/comp.os.ms-wind...ogrammer.win32
where it's a Win32 usual question for a long time...
-
November 26th, 2008, 01:45 PM
#8
Re: How to print image (JPG) file through printer?
 Originally Posted by Laurentis
Great, but definitely no, thanks. I'd like to print images some less twisted way.
Best regards,
Igor
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|