Trying to load report results in gZip error
Posted: Fri May 04, 2012 2:38 pm
I am trying to run the following code using your 2011.3 WPF control. When I do try to run it, I get a gZip magic number error during runtime. Any ideas?
Code: Select all
var stream = new MemoryStream();
var report = new StiReport();
report.RegData("MyItem", myCollection);
report.Render(false);
report.SaveDocument(stream);
//Then I do this on the client
//This is where the error occurs
report.LoadDocument(stream);
report.Show();
stiWpfViewerControl1.Report = report;