Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

print image in vc++ to printer

Posted on 2004-08-10
5
Medium Priority
?
442 Views
Last Modified: 2009-12-16
Hi,

I need to print an image from my pc location directly to the printer using VC++. The printer will be attached to any port. Basically it should pick up the default printer. Im not a VC++ programmer and this is very urgent for me.

Kindly help me with complete code. This is very urgent.

Thanks in advance.

Regards,
-Vishal
0
Comment
Question by:vishalvp
5 Comments
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 400 total points
ID: 11762706
Hi vishalvp,
In windows environment, printing is process very similar to painting on screen, almost identical except for some scaling considerations. But it is a long answer.
I recomment you to read some examples at codeproject.com:

http://www.codeproject.com/printing/

It will be easier to do if you work with MFC library. Just refine your drawing on screen, add some printing message handler, and that's all.
Good luck,
Jaime.
0
 
LVL 2

Expert Comment

by:PCHolmes
ID: 11873753
If it's the image you need printed, I would use MGI Photosuite or Photoimpression to do a screen capture of what you need printed, and then go to the application and print it.

Or maybe I'm not understanding what you want to do here.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
This video teaches viewers about errors in exception handling.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
Suggested Courses

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question