Replace the default templates from stimulsoft with own templates

Stimulsoft Reports.NET discussion
Post Reply
paul.thomas
Posts: 18
Joined: Mon Jun 06, 2022 5:39 am

Replace the default templates from stimulsoft with own templates

Post 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 1085 times
Last edited by paul.thomas on Wed Sep 14, 2022 5:13 pm, edited 1 time in total.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

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

Post by HighAley »

Hello,

You could do it if you buy our source code.

Thank you.
paul.thomas
Posts: 18
Joined: Mon Jun 06, 2022 5:39 am

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

Post by paul.thomas »

what do you mean by "Buy our source code"? we do have stimulsoft ultimate package is that what you mean?
Lech Kulikowski
Posts: 6243
Joined: Tue Mar 20, 2018 5:34 am

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

Post by Lech Kulikowski »

Hello,

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

Thank you.
paul.thomas
Posts: 18
Joined: Mon Jun 06, 2022 5:39 am

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

Post 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.
Lech Kulikowski
Posts: 6243
Joined: Tue Mar 20, 2018 5:34 am

Re: Replace the default templates from stimulsoft with own templates

Post 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.
Post Reply