Page 1 of 1

Rich Textbox Print Preview?

Posted: Sun Jul 25, 2010 11:07 pm
by zachman61
how can i use a new form to use a printpreview control for form1?

Re: Rich Textbox Print Preview?

Posted: Mon Jul 26, 2010 11:52 am
by mandai
Code: Select all
Form1.Controls.Add(New PrintPreviewControl())
?

Re: Rich Textbox Print Preview?

Posted: Mon Jul 26, 2010 9:12 pm
by zachman61
no how can i have it read it? the document is doc1 or a richtextbox

Re: Rich Textbox Print Preview?

Posted: Mon Jul 26, 2010 9:22 pm
by mandai
Read what?
Are you trying to print the from or something?

Re: Rich Textbox Print Preview?

Posted: Mon Jul 26, 2010 9:23 pm
by zachman61
now have the print preview have the document as the richtextbox1 which is named
Doc1

Re: Rich Textbox Print Preview?

Posted: Mon Jul 26, 2010 10:52 pm
by mandai
Apparently the RichTextBoxControl lacks in built-in print/print preview functionality.
Check out http://msdn.microsoft.com/en-us/library/ms996492.aspx and http://support.microsoft.com/kb/812425

Re: Rich Textbox Print Preview?

Posted: Tue Jul 27, 2010 5:41 pm
by zachman61
thats dumb