Page 1 of 1

StiReport Load and Save from Byte[]

Posted: Fri Feb 11, 2011 8:47 am
by rzanardini
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[]

Posted: Mon Feb 14, 2011 1:47 am
by Alex K.
Hello,

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[]

Posted: Tue Oct 22, 2019 4:26 am
by ncmdev
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 ?

Re: StiReport Load and Save from Byte[]

Posted: Tue Oct 22, 2019 1:31 pm
by Lech Kulikowski
Hello,

Sorry, maybe we did not understand your code. Could you explain your issue in more details?

Thank you.