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

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -