Diable new Report or Dashboard in Designer

Stimulsoft Reports.NET discussion
Post Reply
mwitzsche
Posts: 2
Joined: Thu Oct 06, 2022 9:36 pm

Diable new Report or Dashboard in Designer

Post by mwitzsche »

Hello,

I would like to separate reports and dashboards. Is it possible to allow only reports or only dashboards in the designer and disable the other type.

Or second possibility, is it possible to add a custom button to the ribbon menu and then create the desired type.

For me it is important that reports and dashboards are not mixed in one file.

Thanks for the help
Michael
mwitzsche
Posts: 2
Joined: Thu Oct 06, 2022 9:36 pm

Re: Diable new Report or Dashboard in Designer

Post by mwitzsche »

I have now found a few clues in the examples myself. For example, "Saving and Loading a Report in the Designer". There the whole functionality for a dashboard is disabled. But I can't find any code that controls it. I find single functions to disable a menu item or a tab item. I think there is definitely a better way.
service.ShowFileReportSaveAs = false;
service.ShowFileDashboardNew = true;
service.ShowFileReportNew = false;
service.ShowFilePageNew = true;
Lech Kulikowski
Posts: 6237
Joined: Tue Mar 20, 2018 5:34 am

Re: Diable new Report or Dashboard in Designer

Post by Lech Kulikowski »

Hello,

Unfortunately, there are no any other options for that task.

Thank you.
Post Reply