|
-
Mar 21st, 2006, 04:33 AM
#1
Thread Starter
Lively Member
Help me with printing
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
-
Mar 21st, 2006, 04:39 AM
#2
Re: Help me with printing
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.
-
Mar 21st, 2006, 04:50 AM
#3
Thread Starter
Lively Member
Re: Help me with printing
Could you give me some code please?
Thanks,
David
-
Mar 21st, 2006, 05:10 AM
#4
Re: Help me with printing
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.
-
Mar 21st, 2006, 01:04 PM
#5
Re: Help me with printing
If you want to print out strings, then check out this .NET Printing Class
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|