Page 1 of 1
Design report without dialog form - Image lost
Posted: Wed May 28, 2014 3:03 pm
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.
Re: Design report without dialog form - Image lost
Posted: Thu May 29, 2014 12:17 pm
by Alex K.
Hello,
[STAThread]
static void Main(string[] args)
{
...
Thank you.
Re: Design report without dialog form - Image lost
Posted: Mon Jun 02, 2014 1:29 am
by sphextor
It' same to me. how to fix this.
Lost image when upgrate to 2014.1
please help
thank you
Re: Design report without dialog form - Image lost
Posted: Mon Jun 02, 2014 11:38 am
by Alex K.
Hello,
Can you please send us a sample project which reproduce the issue for analysis.
Thank you.
Re: Design report without dialog form - Image lost
Posted: Tue Jun 03, 2014 5:38 am
by xss
Strange, my link disappeared.
Well, here is the link to the sample application:
Re: Design report without dialog form - Image lost
Posted: Tue Jun 03, 2014 8:21 am
by Alex K.
Hello,
Please send sample project with code.
Also please do not upload the samples with our .dll files.
Thank you.
Re: Design report without dialog form - Image lost
Posted: Tue Jun 03, 2014 9:14 am
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
Re: Design report without dialog form - Image lost
Posted: Wed Jun 04, 2014 8:58 am
by Alex K.
Hello,
When you do not use report you can dispose it.
Thank you.