Page 1 of 1
LoadReportInDesigner
Posted: Wed Oct 03, 2012 9:59 am
by MtheP
Dear Stimulsoft,
I am trying to reroute the load report dialogue to a custom load dialogue.
Code: Select all
StiOptions.Engine.GlobalEvents.LoadedReportInDesigner += this.LoadReportTemplateClicked;
However this does not seem to be working.
Code: Select all
StiOptions.Engine.GlobalEvents.SaveReportInDesigner += this.SaveReportTemplateClicked;
Works fine. I am using Silverlight Client Designer
Kind Regards
Re: LoadReportInDesigner
Posted: Wed Oct 03, 2012 12:38 pm
by Alex K.
Hello,
We couldn't reproduce this bug.
Please send us a sample project which reproduces the issue for analysis.
Thank you.
Re: LoadReportInDesigner
Posted: Tue Oct 09, 2012 9:04 am
by MtheP
The code is quite simple. I have currently created my own save dialog. I use
Code: Select all
StiOptions.Engine.GlobalEvents.SavingReportInDesigner += this.SaveReportTemplateClicked;
to intercept the event to show my customized dialog once a user has clicked on save report.
This works fine
However the problem is I do not know what event to intercept to show my Load dialog.
Code: Select all
StiOptions.Engine.GlobalEvents.LoadedReportInDesigner += this.LoadReportTemplateClicked;
This fires only when a document has loaded. Therfore my question is "What global event should I use to display my custom load dialog?"
Re: LoadReportInDesigner
Posted: Tue Oct 09, 2012 12:59 pm
by HighAley
Hello.
Unfortunately, we don't have an event which occurs before Load dialog.
Could your send us a sample application what do you need this event for?
Then we'll consider the possibility of implementing such event.
Thank you.
Re: LoadReportInDesigner
Posted: Tue Oct 09, 2012 3:35 pm
by MtheP
The documents are located on a server and not on the local machines. So whilst I can intercept the Save event to save the document to the server using a custom Save Dialogue I can not intercept the Load event so the user will not be able to load reports to edit / design. It seems strange that you have implemented a way to Save but not to Load (although you do have load from Google Docs)
Re: LoadReportInDesigner
Posted: Wed Oct 10, 2012 6:03 am
by HighAley
Hello.
You could use next properties to disable Load Dialogue and Load from Google Docs:
Code: Select all
StiDesignerSLOptions.MainMenu.OpenReportEnabled = false
StiDesignerSLOptions.MainMenu.OpenReportFromGoogleDocsEnabled = false
Thank you.