This is a migrated thread and some comments may be shown as answers.

Custom paper size

1 Answer 117 Views
RichTextBox (obsolete as of Q3 2014 SP1)
This is a migrated thread and some comments may be shown as answers.
Mads Jepsen
Top achievements
Rank 1
Mads Jepsen asked on 19 Sep 2012, 02:44 PM
Hi

How can i add a custom papersize to papersizes ?
or use ChangePageSize t0 600*300 pixels

Best regards 


1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 24 Sep 2012, 10:26 AM
Hello Mads.

Thank you for writing.

I assume that you want to modify the page size of RadRichTextBox. If so, please refer to the following documentation article which explains how to do it. Additionally, here is a snippet that will set the page size to 600x300:
void radButton1_Click(object sender, EventArgs e)
{
    radRichTextBox1.Document.LayoutMode = DocumentLayoutMode.Paged;
    radRichTextBox1.Document.DefaultPageLayoutSettings.Height=600;
    radRichTextBox1.Document.DefaultPageLayoutSettings.Width = 300;
}

I hope this helps.
 
Kind regards,
Stefan
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Tags
RichTextBox (obsolete as of Q3 2014 SP1)
Asked by
Mads Jepsen
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or