By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,815 Members | 1,066 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,815 IT Pros & Developers. It's quick & easy.

Streaming RTF to a Printer

P: n/a
What is the best way (if possible) to stream RTF to a printer, without the
use of windows form controls ?

Many Thanks in Advance
Nov 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Read this article:
'How to print the contents of a RichTextBox'
http://support.microsoft.com/default...b;en-us;812425

--
John Wood
EMail: first name, dot, second name at priorganize.com
"Jon Turner" <jo********@mail.com> wrote in message
news:OE**************@TK2MSFTNGP10.phx.gbl...
What is the best way (if possible) to stream RTF to a printer, without the
use of windows form controls ?

Many Thanks in Advance

Nov 20 '05 #2

P: n/a
* "Jon Turner" <jo********@mail.com> scripsit:
What is the best way (if possible) to stream RTF to a printer, without the
use of windows form controls ?


\\\
Dim p As New System.Diagnostics.ProcessStartInfo()
p.Verb = "print"
p.WindowStyle = ProcessWindowStyle.Hidden
p.FileName = "C:\filename.rtf"
p.UseShellExecute = True
System.Diagnostics.Process.Start(p)
///
Related:

HOW TO: Print the Content of a RichTextBox by Using Microsoft Visual Basic .NET
<URL:http://support.microsoft.com/?scid=kb;EN-US;811401>

Getting WYSIWYG Print Results from a .NET RichTextBox
<URL:http://msdn.microsoft.com/library/en-us/dnwinforms/html/wnf_RichTextBox.asp>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #3

P: n/a
Thanks for the responses, but the caveat was WITHOUT Windows Controls.
I don't see a way to call the RichTextBoxPrintCtrl.Print if there is not an
associated control on the page. This is .NET assembly DLL that needs
to perform this action.

"John Wood" <sp**@isannoying.com> wrote in message
news:uq*************@TK2MSFTNGP11.phx.gbl...
Read this article:
'How to print the contents of a RichTextBox'
http://support.microsoft.com/default...b;en-us;812425

--
John Wood
EMail: first name, dot, second name at priorganize.com
"Jon Turner" <jo********@mail.com> wrote in message
news:OE**************@TK2MSFTNGP10.phx.gbl...
What is the best way (if possible) to stream RTF to a printer, without the use of windows form controls ?

Many Thanks in Advance


Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.