Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / General / December 2005

Tip: Looking for answers? Try searching our database.

Print an exisiting file from a network share

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
NathanC - 30 Dec 2005 16:59 GMT
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!
Kevin Spencer - 30 Dec 2005 17:21 GMT
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!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.