ShowReportSaveToServerButton

Stimulsoft Reports.Silverlight discussion
Locked
fanta
Posts: 4
Joined: Fri Jul 03, 2015 2:40 pm

ShowReportSaveToServerButton

Post by fanta »

Hi,
We are evaluating Silverlight library for our LightSwitch project.
We use these settings as the WCF sample you provide:

Code: Select all

Stimulsoft.Report.StiOptions.Silverlight.WCFService.UseWCFService = True
Stimulsoft.Report.StiOptions.Viewer.Elements.ShowReportSaveButton = False
Stimulsoft.Report.StiOptions.Viewer.Elements.ShowReportSaveToServerButton = True

and a WCF Service to render the report. Initially the save button is visible but disappears when the report is loaded..
What is wrong?

If we use the client save button (Stimulsoft.Report.StiOptions.Viewer.Elements.ShowReportSaveButton = True), all works fine.

Thanks in advance
Francesco
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: ShowReportSaveToServerButton

Post by HighAley »

Hello, Francesco.

We know about this issue.
Unfortunately, due some restrictions of the LightSwitch we can't solve this issue.

Thank you.
fanta
Posts: 4
Joined: Fri Jul 03, 2015 2:40 pm

Re: ShowReportSaveToServerButton

Post by fanta »

oh It is very unfortunate... there is any workaround?
At least, I can use some custom buttons and invoke the server methods, right?

Thanks
Francesco
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: ShowReportSaveToServerButton

Post by Alex K. »

Hello Francesco,

Yes, you can invoke the server methods in your LightSwitch project.

Thank you.
fanta
Posts: 4
Joined: Fri Jul 03, 2015 2:40 pm

Re: ShowReportSaveToServerButton

Post by fanta »

Please give me a hint!
Looking into your WCF sample project, i see the Export button throw this event :

Code: Select all

 private void WCFService_WCFExportDocument(object sender, Stimulsoft.Report.Events.StiWCFExportEventArgs e)
        {
            exportFilter = e.Filter;
            viewer.StartProgressInformation("WCF Service", "Export Report", Visibility.Visible);

            ServiceReference1.ViewerServiceClient service = new ServiceReference1.ViewerServiceClient();
            service.ExportDocumentCompleted += service_ExportDocumentCompleted;
            service.ExportDocumentAsync(e.Xml);
        }
Using a custom button I can't throw this event so I don't know how to get the e.Xml data: this is not the Report rendering data send by the WCF service.
How can i do?
Thanks
Francesco
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: ShowReportSaveToServerButton

Post by HighAley »

Hello.

Sorry, we can't help to integrate our product in the LightSwitch project.
We provide our product as is and help if there is any issue in Silverlight.

Thank you.
Locked