Solved

print image in vc++ to printer

Posted on 2004-08-10
5
434 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 100 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

627 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