I can't determine how to automatically print a document that already exists.
Everything I am reading has to do with calling Graphics functions and
manually 'drawing' the page and printing that.
I have an application that as part of it's processing creates an text file
and saves it to a network share.
At the end of the rest of the application's processing, I need to be able to
automatically print that document to the default printer.
Application written in:
Visual Studio 2005 as a Windows Form
These are my project references:
---------------------------------------------------------
System
System.Data
System.Deployment
System.DirectoryServices
System.Drawing
System.EnterpriseServices
System.Web
System.Windows.Forms
System.Xml
Thanks!
When you print, you are "drawing" an image that the printer prints.
Therefore, you must use drawing to print.

Signature
HTH,
Kevin Spencer
Microsoft MVP
.Net Developer
You can lead a fish to a bicycle,
but it takes a very long time,
and the bicycle has to *want* to change.
> I can't determine how to automatically print a document that already
> exists.
[quoted text clipped - 24 lines]
>
> Thanks!
NathanC - 30 Dec 2005 19:23 GMT
So there is no way to simply say "go print this file that lives here."
> When you print, you are "drawing" an image that the printer prints.
> Therefore, you must use drawing to print.
[quoted text clipped - 27 lines]
> >
> > Thanks!
Kevin Spencer - 30 Dec 2005 20:30 GMT
No. Here are a couple of articles that may help:
http://www.codeproject.com/csharp/multipadprintdocument.asp
http://msdn2.microsoft.com/en-us/library/cwbe712d.aspx

Signature
HTH,
Kevin Spencer
Microsoft MVP
.Net Developer
You can lead a fish to a bicycle,
but it takes a very long time,
and the bicycle has to *want* to change.
> So there is no way to simply say "go print this file that lives here."
>
[quoted text clipped - 31 lines]
>> >
>> > Thanks!