native silverlight client saving user amended reports

Stimulsoft Reports.Silverlight discussion
Locked
emtopping
Posts: 7
Joined: Tue Jun 28, 2011 5:14 pm
Location: Newcastle UK

native silverlight client saving user amended reports

Post by emtopping »

Hi, can you give me a specific example of how I can persist a user amended report to either the client or server please. Currently evaluating so not an expert.

I get a report like this:

System.Reflection.Assembly a = System.Reflection.Assembly.GetExecutingAssembly();
StreamReader sr = sr = new StreamReader(a.GetManifestResourceStream("PayrollReports.Report.mrt"));

_report.Load(sr.BaseStream);
sr.Dispose();

but how do I save?

Please post explicit instructions as I have trouble looking at the samples...


Thanks
Anton Lozovskiy
Posts: 135
Joined: Tue Aug 11, 2009 9:38 am

native silverlight client saving user amended reports

Post by Anton Lozovskiy »

Hello,

You can use the StiActions.MainMenu.InvokeReportSaveAs(designer) method.

Thank you.
emtopping
Posts: 7
Joined: Tue Jun 28, 2011 5:14 pm
Location: Newcastle UK

native silverlight client saving user amended reports

Post by emtopping »

Thanks, can you give me a few lines of code as a sample?

This is my object:

private StiReport _report = new StiReport();

Anton Lozovskiy
Posts: 135
Joined: Tue Aug 11, 2009 9:38 am

native silverlight client saving user amended reports

Post by Anton Lozovskiy »

Hello,


private StiReport _report = new StiReport();

System.IO.FileStream saveFile = new System.IO.FileStream(...);
_report.Save(saveFile); // Save Report

System.IO.FileStream saveDocument = new System.IO.FileStream(...);
_report.SaveDocument(saveDocument); // Save Document

Thank you.
emtopping
Posts: 7
Joined: Tue Jun 28, 2011 5:14 pm
Location: Newcastle UK

native silverlight client saving user amended reports

Post by emtopping »

Many thanks, Anton
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

native silverlight client saving user amended reports

Post by Andrew »

Hello,

Great! have a nice day!
Locked