Click here to Skip to main content
15,891,694 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Please,

I need code for c# .net 2008

print file text

hide message printing

short code
Posted
Updated 1-Dec-12 3:07am
v3

1 solution

The shortest .NET code to print a file:
C#
Process.Start("Print", @"D:\Temp\MyFile.txt");
 
Share this answer
 
Comments
Carlos j. Ramirez 1-Dec-12 12:01pm    
okbut opens the microsoft onenote
why?
Carlos j. Ramirez 1-Dec-12 22:22pm    
unistall microsoft onenote

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900