SubReports: pictures aren't displayed

Stimulsoft Reports.NET discussion
Post Reply
verbana
Posts: 5
Joined: Mon Oct 19, 2015 6:27 am

SubReports: pictures aren't displayed

Post 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
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: SubReports: pictures aren't displayed

Post by HighAley »

Hello, Anastasia.

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

Thank you.
verbana
Posts: 5
Joined: Mon Oct 19, 2015 6:27 am

Re: SubReports: pictures aren't displayed

Post 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!
Attachments
picture_1.png
picture_1.png (30.09 KiB) Viewed 1780 times
verbana
Posts: 5
Joined: Mon Oct 19, 2015 6:27 am

Re: SubReports: pictures aren't displayed

Post by verbana »

Is it a bug, maybe?
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: SubReports: pictures aren't displayed

Post 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.
verbana
Posts: 5
Joined: Mon Oct 19, 2015 6:27 am

Re: SubReports: pictures aren't displayed

Post by verbana »

Hello!

I installed the latest version (2015.2.0.0), and this problem with SubReports is reproduced again.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: SubReports: pictures aren't displayed

Post 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.
verbana
Posts: 5
Joined: Mon Oct 19, 2015 6:27 am

Re: SubReports: pictures aren't displayed

Post 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!
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: SubReports: pictures aren't displayed

Post 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.
Post Reply