User Profile

Collapse

Profile Sidebar

Collapse
txomin
txomin
Last Activity: Feb 14 '08, 03:16 PM
Joined: Oct 18 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • txomin
    replied to Save RFT file in landscape + A4 mode?
    in .NET
    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 ...
    See more | Go to post
    Last edited by SammyB; Oct 19 '07, 02:50 PM. Reason: Added code tags

    Leave a comment:


  • txomin
    replied to Save document before printing a RichTextBox c#
    in .NET
    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...
    See more | Go to post

    Leave a comment:


  • txomin
    started a topic Create and Open a rtf file . c#
    in .NET

    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 );...
    See more | Go to post

  • txomin
    started a topic Save document before printing a RichTextBox c#
    in .NET

    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...
    See more | Go to post
No activity results to display
Show More
Working...