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
Post a Comment