printing problem in RTL

4 posts, 0 answers
  1. Ehsan
    Ehsan avatar
    10 posts
    Member since:
    Nov 2014

    Posted 20 Jan 2015 Link to this post

    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
  2. Tanya
    Admin
    Tanya avatar
    405 posts

    Posted 22 Jan 2015 Link to this post

    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.

     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Ehsan
    Ehsan avatar
    10 posts
    Member since:
    Nov 2014

    Posted 24 Jan 2015 in reply to Tanya Link to this post

    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.
  5. Tanya
    Admin
    Tanya avatar
    405 posts

    Posted 27 Jan 2015 Link to this post

    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.

     
Back to Top