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

printing problem in RTL

3 Answers 110 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Ehsan
Top achievements
Rank 1
Ehsan asked on 20 Jan 2015, 08:30 AM
I'm having problems in printing a persian document with a RadRichTextBox,
in preview everything is correct but accroding to attached picture , in printing time everything is LTR!

please help.
tnx

3 Answers, 1 is accepted

Sort by
0
Tanya
Telerik team
answered on 22 Jan 2015, 04:02 PM
Hi Ehsan,

Please, verify that the ChangeParagraphFlowDirection() method of RadRichTextBox is used:
this.radRichTextBox.ChangeParagraphFlowDirection(FlowDirection.RightToLeft);

The API of RadRichTextBox exposes a property FlowDirection which is derived from System.Windows.FrameworkElement and is not respected by RadRichTextBox at this point. If this is what you are using to produce the right to left text, the result from the image would be observed.

Hope this helps. If you still experiencing troubles, please, send us more details or a sample file to test with.

Regards,
Tanya
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Ehsan
Top achievements
Rank 1
answered on 24 Jan 2015, 08:11 AM
hi,
thank you about your help.
that line of code solved my problem in : 
<telerikRibbonView:RadRibbonButton   CommandParameter="Native" ... />
mode.

but in CommandParameter="HtmlPreview" mode problem exists.
0
Tanya
Telerik team
answered on 27 Jan 2015, 02:22 PM
Hi Ehsan,

The HtmlPreview parameter is used in RadRichTextBox for Silverlight to visualize the Print preview of the document. This option, along with HTML printing, were introduced to work around a performance problem with the default printing mechanism of Silverlight 4. RadRichTextBox for WPF does not support Print Preview and you can pass only Native as a parameter to the PrintCommand. Every other string is not a valid command parameter. We have this feature already logged in our backlog and I just created a public item in the feedback portal, which you can vote and subscribe in order to receive updates on the matter.

If you need a preview, you can easily implement one - just create another RadRichTextBox, which is read only and show the document in it.

Let me know if there is anything else I can assist you with.

Regards,
Tanya
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
RichTextBox
Asked by
Ehsan
Top achievements
Rank 1
Answers by
Tanya
Telerik team
Ehsan
Top achievements
Rank 1
Share this question
or