Page 1 of 1

Edit Localization file not reflected in report viewer

Posted: Wed Jul 05, 2023 5:06 pm
by falconess
I edited the ExportTypes in localization file but "Adobe PDF" under Save remains unchanged.

Re: Edit Localization file not reflected in report viewer

Posted: Thu Jul 06, 2023 7:07 am
by Lech Kulikowski
Hello,

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

Thank you.

Re: Edit Localization file not reflected in report viewer

Posted: Thu Jul 06, 2023 11:02 am
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"

Re: Edit Localization file not reflected in report viewer

Posted: Fri Jul 07, 2023 7:39 pm
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.