winforms - How do you print a string to the printer in c#? -


I have to print the string with a text box. The string should print through the default printer weather It is a parallel printer or USB printer. Can it be done

BTW..I am using .NET forms

Of course, you can use PrintDocument class to print arbitrary content.

There is a good example that prints the contents of a file on the default printer. It should be trivial rather than favorable to print the content of the text box.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -