RTL for Report Explorer/Report Contents for Section Reports

Posted by: mlk20 on 18 February 2021, 11:37 am EST

    • Post Options:
    • Link

    Posted 18 February 2021, 11:37 am EST - Updated 30 September 2022, 4:48 pm EST

    Hi,

    Can you please advise how to change Report Explorer/Report Contents (see attachment) for Section Reports so it is displayed in “right to left mode”?

    Thank you.

  • Posted 21 February 2021, 3:38 am EST

    Hello,

    You can use the following line of code:

    (reportExplorer.Controls[0].Controls[0] as TreeView).RightToLeftLayout = true;

    However, it has some issue which I am discussing with dev team (AR-25999) and will update you once I get any information from them.

    Thanks,

    Mohit

  • Posted 22 February 2021, 2:09 pm EST

    Ok, I am awaiting your response.

  • Posted 23 February 2021, 7:57 am EST

    As for “(reportExplorer.Controls[0].Controls[0] as TreeView).RightToLeftLayout = true;” don’t you provide some public API that may be used instead of this “hack”?

    This code does not look very stable - it may stop to work if you change some internals of ReportExplorer control.

    You wrote: “it has some issue” - what issue do you mean?

    Thank you

  • Posted 24 February 2021, 11:09 am EST

    Hello,

    You wrote: “it has some issue” - what issue do you mean?

    Selected node is displayed on the Left side. Also, Context Menu appear on the left side.

    This code does not look very stable - it may stop to work if you change some internals of ReportExplorer control.

    Also, please share if you are facing different issue.

    don’t you provide some public API that may be used instead of this “hack”?

    I am discussing the same thing with the development team.

    Thanks,

    Mohit

  • Posted 1 March 2021, 11:17 am EST

    Hello,

    This issue is fixed in the internal build and will release in the AR15.1

    Thanks,

    Mohit

  • Posted 8 March 2021, 11:18 am EST

    We are sometimes (not always) receiving:

    System.NullReferenceException: Object reference not set to an instance of an object.

    at System.Windows.Forms.TreeView.CustomDraw(Message& m) +0x0263

    at System.Windows.Forms.TreeView.WmNotify(Message& m) +0x0016

    at System.Windows.Forms.TreeView.WndProc(Message& m) +0x0271

    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) +0x0025

    Is this what you fixed in AR15.1?

  • Posted 9 March 2021, 1:11 am EST

    Hello,

    Selected node is displayed on the Left side is the issue we have fixed in the AR15.1. Could you please share the stripped down sample so that we can look into the issue.

    Thanks,

    Mohit

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels