My report designer has these options:
Code: Select all
this.options.toolbar.showFileMenu = false;
this.options.toolbar.showSaveButton = false;
Someone please help me
Thanks
Code: Select all
this.options.toolbar.showFileMenu = false;
this.options.toolbar.showSaveButton = false;
Code: Select all
var designer = new Stimulsoft.Designer.StiDesigner(options, "StiDesigner", false);
var customButton = document.getElementById("customButton");
customButton.onclick = function () {
designer.jsObject.SendCommandSaveReport();
}
Nice! Thank a lotAleksey wrote:Hello,
You can use the following code:Thank you.Code: Select all
var designer = new Stimulsoft.Designer.StiDesigner(options, "StiDesigner", false); var customButton = document.getElementById("customButton"); customButton.onclick = function () { designer.jsObject.SendCommandSaveReport(); }
Code: Select all
.SendCommandSaveReport = function(e, t) {
var o, i, a, o;
this.options.reportIsModified = !1,
this.options.haveSaveEvent ? (o = {
command: "SaveReport",
reportFile: this.options.report.properties.reportFile,
isNewReport: e,
autoSave: t
},
Code: Select all
const options = new window.Stimulsoft.Designer.StiDesignerOptions()
options.Height = '100%'
options.Width = '100%'
options.appearance.allowChangeWindowTitle = false
options.appearance.zoom = 'PageHeight'
options.appearance.showSaveDialog = false
options.appearance.fullScreenMode = true
options.toolbar.showSaveButton = false
options.toolbar.showFileMenuNewReport = true
options.toolbar.showFileMenuNewDashboard = false
options.toolbar.showFileMenuNew = true
options.toolbar.showNewDashboardButton = false
options.toolbar.showFileMenuOpen = true
options.toolbar.showFileMenuClose = false
options.toolbar.showFileMenuSaveAs = true
options.toolbar.showFileMenuSave = false
if (dashboardMode) {
options.toolbar.showFileMenuNewDashboard = true
options.toolbar.showFileMenuNewReport = false
options.toolbar.showNewDashboardButton = true
options.toolbar.showNewPageButton = false
options.toolbar.showFileMenuReportSetup = false
options.bands.showReportTitleBand = false
options.bands.showReportSummaryBand = false
options.bands.showPageHeaderBand = false
options.bands.showPageFooterBand = false
options.bands.showTableOfContents = false
}
for (const option in savedOptions) {
options[option] = {
...options[option],
...savedOptions[option]
}
}
const newDesigner = new window.Stimulsoft.Designer.StiDesigner(options, "StiDesigner", false)
newDesigner.onSaveReport = onSaveReport
newDesigner.onBeginProcessData = onBeginProcessData
newDesigner.onExit = onExit
newDesigner.report = report