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

Single Page Display

1 Answer 54 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Marcel
Top achievements
Rank 1
Marcel asked on 17 Aug 2011, 01:35 PM
Hi,

currently my documents are being displayed next to each so as you schroll down you always have two pages. I would like to display each page underneath the other,  I have played around with the document settings but haven't had any luck.

Currently:
---------------------     ---------------------
|          Page1    |    |      Page 2      |
|                        |    |                        |
|                        |    |                        |
|                        |    |                        |
|                        |    |                        |
|                        |    |                        |
---------------------    ---------------------

Trying to achieve:
---------------------
|           page 1  |
|                        |
|                        |
|                        |
|                        |
|                        |
|                        |
|                        |
---------------------

---------------------
| page 2             |
|                         |
|                         |
|                         |
|                         |
|                         |
|                         |
|                         |
---------------------

Was hoping someone could give me some advice.

Thanks

Marcello.

1 Answer, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 19 Aug 2011, 01:53 PM
Hi Marcellino,

The behavior regarding the pages shown is similar to MS Word's. Depending on the size of the editor, the page size of the document and the zoom factor, as many pages as possible are shown.
You can change the page size of the document in the following way:

this.radRichTextBox.ChangePageSize(PaperTypes.A4);
 //or
this.radRichTextBox.ChangePageSize(new SizeF(pageWidth, pageHeight));
I hope this helps.

Kind regards,
Iva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
RichTextBox
Asked by
Marcel
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Share this question
or