Page 1 of 1

ShowReportSaveToServerButton

Posted: Thu Jun 23, 2016 3:13 pm
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

Re: ShowReportSaveToServerButton

Posted: Fri Jun 24, 2016 11:36 am
by HighAley
Hello, Francesco.

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

Thank you.

Re: ShowReportSaveToServerButton

Posted: Wed Jun 29, 2016 12:58 pm
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

Re: ShowReportSaveToServerButton

Posted: Thu Jun 30, 2016 1:16 pm
by Alex K.
Hello Francesco,

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

Thank you.

Re: ShowReportSaveToServerButton

Posted: Thu Jun 30, 2016 3:16 pm
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

Re: ShowReportSaveToServerButton

Posted: Fri Jul 01, 2016 12:06 pm
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.