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

RichTextBox How To Detect Page Layout when Print started

2 Answers 74 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
blaise
Top achievements
Rank 1
blaise asked on 22 Sep 2011, 09:55 AM
Hello,

I need to adapt a table layout according to the page layout when printing a radrichtextbox.
The goal is to automatically split a table in a partition wich respect the requested page layout.
if I do not do this, it is not possible to print
1. large tables --> they are truncated
2. partition header on each page

Am I going to the good  way?
Does it exists a way to detect the user chosen page layout when printing a richtextbox content?


Thank you for answers.
 

2 Answers, 1 is accepted

Sort by
0
blaise
Top achievements
Rank 1
answered on 24 Sep 2011, 11:45 PM
Finally I have chosen the "PrintDocument" way... The api is flexible and result is really beautiful...
I have to admit it's quite slow, Nevertheless this way seems reliable : silverlight 5 is going to provide a vectorised print api, speed will come with this so waited feature.
0
Boby
Telerik team
answered on 28 Sep 2011, 07:17 AM
Hello Blaise,
We're glad to hear that the API is flexible enough for your purposes. Native Silverlight 4 printing is bitmap-based, thus very slow, so we have provided HTML printing (through RadRichTextBox.Print("", PrintMode.Html) method), which is faster, but lacks a precise pagination, so maybe it won't fit your needs.

Don't hesitate to contact us if you have other questions or recommendations.


Regards,
Boby
the Telerik team

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

Tags
RichTextBox
Asked by
blaise
Top achievements
Rank 1
Answers by
blaise
Top achievements
Rank 1
Boby
Telerik team
Share this question
or