Page 1 of 1

SubReports: pictures aren't displayed

Posted: Mon Oct 19, 2015 7:10 am
by verbana
Hello!

I have a report with subreports. The .mrt contains some pictures. When I add subreports in that way:

Code: Select all

report.SubReports.Add(subreport);
and preview report, pictures aren't displayed. Tag <ImageToDraw> is lost in report's xml after executing this command.
Can you please help me ant tell, how I can display pictures on the screen?

Best regards,
Anastasia

Re: SubReports: pictures aren't displayed

Posted: Mon Oct 19, 2015 10:24 am
by HighAley
Hello, Anastasia.

The ImageToDraw property is temporary.
You should not use this property.

Thank you.

Re: SubReports: pictures aren't displayed

Posted: Mon Oct 19, 2015 11:44 am
by verbana
Aleksey, thank you for reply!

If I understand correctly, value of this property is set automatically, when the picture is loaded through Stimulsoft Designer. I don't set it manually.
This case is reproduced, when I load pictures by choosing Image:
Image
If I choose FIle, this property keeps value. And picture is displayed after making preview of the report.
How can I display a picture at the report in the first way (by choosing Image)?

Thanks a lot for your help!

Re: SubReports: pictures aren't displayed

Posted: Mon Oct 19, 2015 1:52 pm
by verbana
Is it a bug, maybe?

Re: SubReports: pictures aren't displayed

Posted: Tue Oct 20, 2015 5:38 am
by HighAley
Hello.

Sorry, but we could not reproduce the issue.
What version do you use?
Please, try our latest build and let us know about results.

Thank you.

Re: SubReports: pictures aren't displayed

Posted: Tue Oct 20, 2015 8:38 am
by verbana
Hello!

I installed the latest version (2015.2.0.0), and this problem with SubReports is reproduced again.

Re: SubReports: pictures aren't displayed

Posted: Tue Oct 20, 2015 12:55 pm
by HighAley
Hello.

If you load image file in Image property, the Image tag should be populated with image data.
Please, send us a sample working project that reproduces the issue.

Thank you.

Re: SubReports: pictures aren't displayed

Posted: Wed Oct 21, 2015 6:30 am
by verbana
Hello!

The issue is solved. While I was preparing a sample test project, I found a mistake and corrected it. I'm sorry, I was wrong.
Thank you very much for help!

Re: SubReports: pictures aren't displayed

Posted: Wed Oct 21, 2015 9:43 am
by HighAley
Hello.

It's OK. More importantly that you have solved the issue.
Let us know if you need any additional help.

Thank you.