Page 1 of 1

Replace the default templates from stimulsoft with own templates

Posted: Fri Aug 19, 2022 11:33 am
by paul.thomas
is there any way to replace the default templates provided in the files menu with our own templates ?
designer.PNG
designer.PNG (122.85 KiB) Viewed 3087 times

Re: Replace the default templates from stimulsoft with out own templates

Posted: Mon Aug 22, 2022 6:48 am
by HighAley
Hello,

You could do it if you buy our source code.

Thank you.

Re: Replace the default templates from stimulsoft with out own templates

Posted: Mon Sep 05, 2022 5:12 am
by paul.thomas
what do you mean by "Buy our source code"? we do have stimulsoft ultimate package is that what you mean?

Re: Replace the default templates from stimulsoft with out own templates

Posted: Tue Sep 06, 2022 7:50 am
by Lech Kulikowski
Hello,

Please clarify which designer (net, wpf, js, etc) you use and how you call it.

Thank you.

Re: Replace the default templates from stimulsoft with out own templates

Posted: Wed Sep 14, 2022 4:41 pm
by paul.thomas
we use .net version . we are calling it as per how it is explained in the documents by intializing new object of class StiNetCoreDesigner in .cshtml file.

Re: Replace the default templates from stimulsoft with own templates

Posted: Thu Sep 15, 2022 7:53 am
by Lech Kulikowski
Hello,

You can add it via script code:

Code: Select all

var designer = new Stimulsoft.Designer.StiDesigner(options, designerId, false);
            designer.renderHtml("content");

            var newReportPanel = designer.jsObject.options.newReportPanel || designer.jsObject.InitializeNewReportPanel();
            var customBigButton = designer.jsObject.NewReportPanelButton("customReportButton", "My Report Button", "BlankReport.png");

            //If you want change button image
            //customBigButton.image.src = "https://www.google.by/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png";
            newReportPanel.childNodes[1].addCell(customBigButton);

            customBigButton.action = function () {
                var fileMenu = this.jsObject.options.menus.fileMenu || this.jsObject.InitializeFileMenu();
                fileMenu.changeVisibleState(false);
                setTimeout(function () {
                    //Write your code here
                    alert("customReportButton was clicked!");
                }, 200);
            }
Thank you.