Edit Localization file not reflected in report viewer

Stimulsoft Reports.ANGULAR discussion
Post Reply
falconess
Posts: 2
Joined: Wed Jul 05, 2023 5:03 pm

Edit Localization file not reflected in report viewer

Post by falconess »

I edited the ExportTypes in localization file but "Adobe PDF" under Save remains unchanged.
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: Edit Localization file not reflected in report viewer

Post by Lech Kulikowski »

Hello,

Unfortunately, it is not possible to change it from localization files.

Thank you.
falconess
Posts: 2
Joined: Wed Jul 05, 2023 5:03 pm

Re: Edit Localization file not reflected in report viewer

Post by falconess »

Thank you, is there any other possible ways to update/change the Export Type Values such as "Adobe PDF", "Microsoft XPS" into "Adobe PDF file", "Microsot XPS file"
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: Edit Localization file not reflected in report viewer

Post by Lech Kulikowski »

Hello,

You can use the following code:

Code: Select all

<form id="form1" runat="server">
        <cc2:StiWebViewer runat="server" ID="StiWebViewer1" CacheMode="StringCache" />
    </form>
     <script>
         //where jsStiWebViewer1 -> "js" + viewer ID
         jsStiWebViewer1.onready = function () {
             debugger;
             var saveMenu = jsStiWebViewer1.controls.menus.saveMenu;
             if (saveMenu) {
                 saveMenu.items.Pdf.caption.innerText = "My Pdf Export";
                 saveMenu.items.Ppt2007.caption.innerText = "My Ppt Export";
                 //...............
             }
        }
     </script>
Thank you.
Post Reply