using silverlight viewer in client side
using silverlight viewer in client side
Hey all,
I am trying to use silverlight viewer in client side in order to view a sample report. I followed this tutorial (http://www.stimulsoft.com/livedemos.SL/ ... light.html) and everything works fine. But when i tried to load mrt file using open file dialog, then convert it to byte[] and use "report.load", it doesn't work. I am using business object as data source, but viewer show nothing when i load mrt from outside.
Any ideas please ?
Regards,
Jalal
I am trying to use silverlight viewer in client side in order to view a sample report. I followed this tutorial (http://www.stimulsoft.com/livedemos.SL/ ... light.html) and everything works fine. But when i tried to load mrt file using open file dialog, then convert it to byte[] and use "report.load", it doesn't work. I am using business object as data source, but viewer show nothing when i load mrt from outside.
Any ideas please ?
Regards,
Jalal
using silverlight viewer in client side
Hello Jatal,
Please show your code.
Thank you.
Please show your code.
Thank you.
using silverlight viewer in client side
Thanks for your reply.
My code :
var ofd = new OpenFileDialog { Filter = "mrt Files (*.mrt)|*.mrt", Multiselect = false };
if (!((bool)ofd.ShowDialog())) return;
using (FileStream s = ofd.File.OpenRead())
{
mrtDataByte = new byte[s.Length];
s.Read(mrtDataByte, 0, Convert.ToInt32(s.Length));
}
StiReport report = new StiReport();
report.Load(mrtDataByte);
report.RegBusinessObject("Category1", "Invoice", new invoice() { invoiceNumber = "123", Title = "invoice title" });
report.Dictionary.SynchronizeBusinessObjects();
report.Render();
report.Show();
----> Nothing appeared when i use this code. But if I use report.Design() , then i can see the report ( preview doesn't work in designer since i read that Stimulsoft still working on )
My code :
var ofd = new OpenFileDialog { Filter = "mrt Files (*.mrt)|*.mrt", Multiselect = false };
if (!((bool)ofd.ShowDialog())) return;
using (FileStream s = ofd.File.OpenRead())
{
mrtDataByte = new byte[s.Length];
s.Read(mrtDataByte, 0, Convert.ToInt32(s.Length));
}
StiReport report = new StiReport();
report.Load(mrtDataByte);
report.RegBusinessObject("Category1", "Invoice", new invoice() { invoiceNumber = "123", Title = "invoice title" });
report.Dictionary.SynchronizeBusinessObjects();
report.Render();
report.Show();
----> Nothing appeared when i use this code. But if I use report.Design() , then i can see the report ( preview doesn't work in designer since i read that Stimulsoft still working on )
using silverlight viewer in client side
Same problem for me, the viewer shows always a blank page.
using silverlight viewer in client side
Hello,
Unfortunately Silverlight does not support compilation in runtime. We use compilation for create report class in our report engine. This is why sample which provided use reports as source code. But we have on final stage of testing interpretator which will be used in silverlight version of our product. In this case report engine can render report without compilation. Interpretation mode will be available in few weeks.
Thank you.
Unfortunately Silverlight does not support compilation in runtime. We use compilation for create report class in our report engine. This is why sample which provided use reports as source code. But we have on final stage of testing interpretator which will be used in silverlight version of our product. In this case report engine can render report without compilation. Interpretation mode will be available in few weeks.
Thank you.
using silverlight viewer in client side
Bad news...
I think I will wait a moment before using Reports.Silverlight product...
I let you work hard on it :biggrin:
Cordially,
Kakone.
I think I will wait a moment before using Reports.Silverlight product...
I let you work hard on it :biggrin:
Cordially,
Kakone.
using silverlight viewer in client side
Hello,
On Tuesday the prerelease build will be live. You will be able to download the .mrt file containing the data based on business objects. Also Preview will work in the designer.
Thank you.
On Tuesday the prerelease build will be live. You will be able to download the .mrt file containing the data based on business objects. Also Preview will work in the designer.
Thank you.
using silverlight viewer in client side
May you send me the link of the prerelease, since i can't find it in the download page.Aleksey wrote:Hello,
On Tuesday the prerelease build will be live. You will be able to download the .mrt file containing the data based on business objects. Also Preview will work in the designer.
Thank you.
Regards,
Jalal
using silverlight viewer in client side
Hello,
Prerelease build already available for download on our site.
http://stimulsoft.com/Downloads.aspx
Thank you.
Prerelease build already available for download on our site.
http://stimulsoft.com/Downloads.aspx
Thank you.
using silverlight viewer in client side
Thanks Jan and Aleksey,
Now it works well. I can load mrt file and see it in designer. Moreover i can use viewer to see my rendered report.
Great Job.
Regards,
Jalal
Now it works well. I can load mrt file and see it in designer. Moreover i can use viewer to see my rendered report.
Great Job.
Regards,
Jalal