StiReport Load and Save from Byte[]

Stimulsoft Reports.NET discussion
Post Reply
rzanardini
Posts: 11
Joined: Fri Feb 11, 2011 8:41 am
Location: Italia

StiReport Load and Save from Byte[]

Post 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.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

StiReport Load and Save from Byte[]

Post 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.
ncmdev
Posts: 1
Joined: Tue Oct 22, 2019 3:40 am

Re: StiReport Load and Save from Byte[]

Post 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 ?
Lech Kulikowski
Posts: 6247
Joined: Tue Mar 20, 2018 5:34 am

Re: StiReport Load and Save from Byte[]

Post by Lech Kulikowski »

Hello,

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

Thank you.
Post Reply