I've been able to create and save a .rtf file with the text of a RichtextBox. C#
[code=c]
private void btnPrint_Click( object sender, EventArgs e)
{
if (this.saveFileD ialog1.ShowDial og() == DialogResult.OK )
if ((this.saveFile Dialog1.FileNam e.Length) > 0)
this.richTextBo xPrintCtrl1.Sav eFile(this.save FileD ialog1.FileName , RichTextBoxStre amType.RichText );
}
[/code]
// Instruction to ...
User Profile
Collapse
-
-
Hi,
I've been able to create and save a .rtf file with the text of a RichtextBox.
private void btnPrint_Click( object sender, EventArgs e)
{
if (this.saveFileD ialog1.ShowDial og() == DialogResult.OK )
if ((this.saveFile Dialog1.FileNam e.Length) > 0)
this.richTextBo xPrintCtrl1.Sav eFile(this.save FileD ialog1.FileName , RichTextBoxStre amType.RichText );
// Instruction to
// Open this.saveFileD...Leave a comment:
-
Create and Open a rtf file . c#
Hi,
I've been able to create and save a .rtf file with the text of a RichtextBox.
private void btnPrint_Click( object sender, EventArgs e)
{
if (this.saveFileD ialog1.ShowDial og() == DialogResult.OK )
if ((this.saveFile Dialog1.FileNam e.Length) > 0)
this.richTextBo xPrintCtrl1.Sav eFile(this.save FileDialog1.Fil eName, RichTextBoxStre amType.RichText );... -
Save document before printing a RichTextBox c#
Hi all,
Following the instructions of this link http://support.microso ft.com/kb/812425, i've been able to print the content of a RichTextBox control . Apart from that , I want to have the chance to create and save a file with the content of the RichTextBox. I've read a thread (http://www.thescripts. com/forum/thread159382.ht ml) and i've been able to create files. But those files don't have any extension and I dont know how I can open...
No activity results to display
Show More
Leave a comment: