I have a simple problem.
I just want to print a string.
I have string "My name is David" and I want to print it out.
How?
Thanks
David
Printable View
I have a simple problem.
I just want to print a string.
I have string "My name is David" and I want to print it out.
How?
Thanks
David
The short answer is that you create a PrintDocument object, call its Print method and handle its PrintPage event. You use GDI+ to perform the actual printing inside the PrintPage event handler.
The 2003 101 Samples contains a printing sample. If you're using 2005 then the project can be upgraded.
Could you give me some code please?
Thanks,
David
It's all in the 101 Samples, as I said. See my signature for a link. Alternatively you could read about the PrintDocument in the help/MSDN library. Be proactive.
If you want to print out strings, then check out this .NET Printing Class