Click here to Skip to main content
11,935,053 members (50,295 online)
Click here to Skip to main content
Add your own
alternative version


13 bookmarked

Windows Printing using the Shell

, 1 Nov 2004
Rate this:
Please Sign up or sign in to vote.
This project describes how print files using windows programming


We needed to have a way to perform batch printing of a list of files in windows.i was able to find a way to print non-imaging files (.doc,.xls.txt.pdf) usign the System.Diagnostics.Process function and passing the "Print" verb.However,I was having trouble to find a way to print images escpecially since XP does it using the Windows XP Photo Printing Wizard.

However,I finally found a very useful example project at MSDN (
"Photos are printed using the Windows XP Photo Printing Wizard . The wizard is implemented in the system file photowiz.dll but the custom interface is not exposed. Instead, the Windows Image Acquisition Library (WIA) from Microsoft is used that provides a COM wrapper for the printing wizard. The printing code is encapsulated in the Print class."

More information about the WIA library can be found at

The library can be downloaded and installed from

Though MSDN suggest the examples are in VB and scripting languages I was able to reproduce them in C#.

hope you enjoy it!!


  1. WIA imaging toolkit is available for developers who need to develop image-enabled applications for Windows ME and XP (Service Pack 1).The WIA Automation Layer exposes features in Windows XP Service Pack 1 or later to make it easy to acquire images on digital cameras, scanners, or web cameras, and to rotate, scale, and annotate your image files.
  2. Supported image formats include PNG, JPG, GIF, BMP and TIFF. These are defined by the FormatID Constants in the WIA library



This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Supriya Angle
United States United States
No Biography provided

You may also be interested in...

Comments and Discussions

GeneralMy vote of 1 Pin
crystalmac26-Jun-09 3:14
membercrystalmac26-Jun-09 3:14 
GeneralMy vote of 1 Pin
Jacquers26-Jun-09 2:30
memberJacquers26-Jun-09 2:30 
QuestionHas anybody figured out where the "printprocess" class is? Pin
catchfire14-Jul-05 5:56
membercatchfire14-Jul-05 5:56 
AnswerRe: Has anybody figured out where the "printprocess" class is? Pin
rvdt13-Oct-05 1:03
memberrvdt13-Oct-05 1:03 
GeneralMore Information Pin
beatsunique20-Feb-05 12:02
sussbeatsunique20-Feb-05 12:02 
GeneralRe: More Information Pin
benchva7-Apr-05 4:54
memberbenchva7-Apr-05 4:54 
GeneralRe: More Information Pin
beatsunique7-Apr-05 12:56
memberbeatsunique7-Apr-05 12:56 
Hi thanks for your reply, however I still can't make it out? I've looked through your form1.cs but can't see any reference to the Interop.WIA.dll. It is in the Release directory but I can't see any reference to it in your code. There also isn't a PrintImage class in the zip? Just a form.cs. I know I must be missing something really obvious but can you explain..

GeneralRe: More Information Pin
devikta6-May-05 11:21
memberdevikta6-May-05 11:21 
GeneralRe: More Information Pin
Andi Oliver Ion12-Aug-07 7:08
memberAndi Oliver Ion12-Aug-07 7:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.151126.1 | Last Updated 1 Nov 2004
Article Copyright 2004 by Supriya Angle
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid