Hi,
I'm a C# developer and I'm trying your Stimulsoft Report suite.
I like so much your suite but I have a problem:
My application must save the report file in a Database and I want:
1) loading the report from DB load this byte array in your Wpf Report designer form
2) when the user close your Wpf Report designer form save this bye Array in my DB
Fro the point 1 I have write the code:
Byte[] myArr = ... LOAD FROM DB
using (var report = new StiReport())
{
report.Load(myArr);
report.DesignWithWpf();
}
And it run correcly.
I ask you: how can I intercept when the user modify or save the report? (to save the byte array in my DB)
Thanks, Riccardo Zanardini.
StiReport Load and Save from Byte[]
-
- Posts: 11
- Joined: Fri Feb 11, 2011 8:41 am
- Location: Italia
StiReport Load and Save from Byte[]
Hello,
You can subscribe to an event of closing or saving the designer, and make necessary saving in it.
stiReport1.SaveToByteArray()
Thank you.
You can subscribe to an event of closing or saving the designer, and make necessary saving in it.
stiReport1.SaveToByteArray()
Thank you.
Re: StiReport Load and Save from Byte[]
Byte[] myArr = ... LOAD FROM DB
using (var report = new StiReport())
{
report.Load(myArr);
report.DesignWithWpf();
}
stiReport1.SaveToByteArray()
I used section code above but i'm still not working.
And do everybody have a another way ?
using (var report = new StiReport())
{
report.Load(myArr);
report.DesignWithWpf();
}
stiReport1.SaveToByteArray()
I used section code above but i'm still not working.
And do everybody have a another way ?
-
- Posts: 6247
- Joined: Tue Mar 20, 2018 5:34 am
Re: StiReport Load and Save from Byte[]
Hello,
Sorry, maybe we did not understand your code. Could you explain your issue in more details?
Thank you.
Sorry, maybe we did not understand your code. Could you explain your issue in more details?
Thank you.