LoadReportInDesigner

Stimulsoft Reports.Silverlight discussion
Locked
MtheP
Posts: 24
Joined: Mon Jul 18, 2011 7:37 am

LoadReportInDesigner

Post 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
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: LoadReportInDesigner

Post by Alex K. »

Hello,

We couldn't reproduce this bug.
Please send us a sample project which reproduces the issue for analysis.

Thank you.
MtheP
Posts: 24
Joined: Mon Jul 18, 2011 7:37 am

Re: LoadReportInDesigner

Post 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 :D

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?"
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: LoadReportInDesigner

Post 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.
MtheP
Posts: 24
Joined: Mon Jul 18, 2011 7:37 am

Re: LoadReportInDesigner

Post 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)
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: LoadReportInDesigner

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