You are here:

C#/Problem related to Text file using c#.net

Advertisement


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

C#

All Answers


Answers by Expert:


Ask Experts

Volunteer


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

©2012 About.com, a part of The New York Times Company. All rights reserved.