Design report without dialog form - Image lost

Stimulsoft Reports.NET discussion
Post Reply
xss
Posts: 64
Joined: Wed Jun 10, 2009 3:03 am
Location: Austria

Design report without dialog form - Image lost

Post by xss »

Dear sirs,

a few weeks ago we updated to 2014.1.1900 Framework Version 4. Now a strange thing happens. If we design a report without setting dialogForm to true, an embedded image gets lost. I made a sample application to demonstrate this behavior.

Download:

Thank you.
Xss

PS: I'm back on monday to reply if u need further informations.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Design report without dialog form - Image lost

Post by Alex K. »

Hello,

[STAThread]
static void Main(string[] args)
{
...

Thank you.
sphextor
Posts: 38
Joined: Tue Apr 01, 2008 1:42 am
Location: Thailand

Re: Design report without dialog form - Image lost

Post by sphextor »

It' same to me. how to fix this.
Lost image when upgrate to 2014.1

please help

thank you
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Design report without dialog form - Image lost

Post by Alex K. »

Hello,

Can you please send us a sample project which reproduce the issue for analysis.

Thank you.
xss
Posts: 64
Joined: Wed Jun 10, 2009 3:03 am
Location: Austria

Re: Design report without dialog form - Image lost

Post by xss »

Strange, my link disappeared. :?

Well, here is the link to the sample application:
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Design report without dialog form - Image lost

Post by Alex K. »

Hello,

Please send sample project with code.
Also please do not upload the samples with our .dll files.

Thank you.
xss
Posts: 64
Joined: Wed Jun 10, 2009 3:03 am
Location: Austria

Re: Design report without dialog form - Image lost

Post by xss »

Oh dear...I'm sorry, we found the problem. In our code the report was disposed after calling .Design(). So with the dialogForm = true the code execution stopped.

Code: Select all

using (Stimulsoft.Report.StiReport report = new Stimulsoft.Report.StiReport())
{
report.Load(Path.Combine(Application.StartupPath, "Demo.mrt"));
report.RegData(GetDemoData());
report.Dictionary.Synchronize();
report.Dictionary.SortItems(Stimulsoft.Report.Dictionary.StiSortOrder.Asc);
report.Design(dialogForm);
}
The final question. At which point should we dispose the designed report?

Thank you,
Xss
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Design report without dialog form - Image lost

Post by Alex K. »

Hello,

When you do not use report you can dispose it.

Thank you.
Post Reply