How to print out a RichTextBox
-
I have googled and googled but not found a single simple solution: How to print the contents of a RichTextBox? The contents is text only and font courier 12.
-
I have googled and googled but not found a single simple solution: How to print the contents of a RichTextBox? The contents is text only and font courier 12.
Have you tried this[^] ? Although it is in C#, you will get an idea
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
-
Have you tried this[^] ? Although it is in C#, you will get an idea
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
Yes, I have tried it but it won't work with SharpDevelop (the IDE that I use to code VB.net). Is there any other way?
-
Yes, I have tried it but it won't work with SharpDevelop (the IDE that I use to code VB.net). Is there any other way?
If you looked at the top of that page, there's a link to the VB.NET 2005 (.NET 2.0) version of the same code. Also, the code has absolutely nothing to do with the IDE you're using. It'll still work, even if you're using Notepad to type in the code.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
Yes, I have tried it but it won't work with SharpDevelop (the IDE that I use to code VB.net). Is there any other way?
Drop this component[^] on the form that contains the rich text box, then set the extended properties for the bounding rectangle and other options and then call the FormPrintHelper1.Print method.
'--8<------------------------ Ex Datis: Duncan Jones Merrion Computing Ltd