AllExperts > Experts 
Search      

C#

Volunteer
Answers to thousands of questions
 Home · More Questions · Answer Library  · Encyclopedia ·
More C# Answers
Question Library

Ask a question about C#
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Srini Nagarajan
Expertise
can answer any kind of questions in ASP.NET, C#, VB.NET, ASP, SharePoint 2007, Coldfusion, Powerbuilder 7.00 / 8.00, JAVA servlets, MS SQL 2000 / MSSQL7, Sybase

Experience
Contact me if you need any custom development on ASP.NET, ASP, Coldfusion, Powerbuilder
 
   

You are here:  Experts > Computing/Technology > C/C++ > C# > Problem related to Text file using c#.net

Topic: C#



Expert: Srini Nagarajan
Date: 3/28/2008
Subject: Problem related to Text file using c#.net

Question
How to give printing of a text file at run time using C#.NET Window application?

Answer
Hi

You can call a CMD script to print a external file you can use "Print" command starting it via System.Diagnostics.Process

here is the usage

PRINT [/D:device] [pathname(s)]

key
  device   : either a local printer (LPTx, COMx )
             or a network printer by its sharename (\\servername\print_share)

  pathname : The file or files to be printed

-Srini

Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.