Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printer setup

Status
Not open for further replies.

scienzia

Programmer
Feb 21, 2002
160
IT
I'm making an application that should print messages without any dialog and without any human work, but I would like to be able to configure the printer and it would be very nice to have this configuration active even throught closing and reopening the application.

What is the best way of doing this?!?
 
Use the CPrintDialog Class, this in conjunction with the appropriate settings will allow you to do what you want.

HTH
William
Software Engineer
ICQ No. 56047340
 
That's nice, but it forgets settings everytime I close the programm...
 
You could always store them in the Registry on the Client machine.

William
Software Engineer
ICQ No. 56047340
 
If you are using MFC you can use the CRegKey class or if you prefer you can use RegOpenKey, RegQueryKey etc. from the Win32 SDK.

HTH
William
Software Engineer
ICQ No. 56047340
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top