Page 1 of 1

Using our own user controls in a report

Posted: Wed Nov 13, 2013 4:28 pm
by bgorter
Is it possible to use our own user controls in a report? I'd like to be able to add our user controls to the toolbox so they can be selected and added to a report in the designer. Is this possible? If so, any samples?

Thanks.

Re: Using our own user controls in a report

Posted: Thu Nov 14, 2013 9:59 am
by Alex K.
Hello,

Please check the sample in the attachment.

Thank you.

Re: Using our own user controls in a report

Posted: Thu Nov 14, 2013 2:52 pm
by bgorter
I downloaded the sample but when I run it, I get the following error: Could not load file or assembly 'Stimulsoft.Report.Wpf.Office2013Theme, Culture=neutral' or one of its dependencies. The system cannot find the file specified.

I get this error when attempting to run any of the sample projects. I am running 64 bit Windows 7.

Re: Using our own user controls in a report

Posted: Fri Nov 15, 2013 6:00 am
by HighAley
Hello.

Please, add Stimulsoft.Report.Wpf.Office2013Theme assembly to this project.

Thank you.

Re: Using our own user controls in a report

Posted: Wed Dec 11, 2013 4:20 pm
by bgorter
I added this assembly but now get another error:

Cannot locate resource 'images/office2013/toolbox/mycustomcomponent.png'.

Re: Using our own user controls in a report

Posted: Thu Dec 12, 2013 8:51 am
by Alex K.
Hello,

The issue is fixed. Fix will be available in the next prerelease build which will be available in this week.

Sorry for any inconvenience this may cause.
Thank you.

Re: Using our own user controls in a report

Posted: Tue Jan 07, 2014 9:17 pm
by bgorter
Ok, I got the sample running. The custom component in there doesn't do anything or have anything in it. Do you have a sample that actually uses a custom user control within the designer? Any more documentation at all?

For example, how about showing how you can take a simple UserControl and make that available in a report?

Re: Using our own user controls in a report

Posted: Thu Jan 09, 2014 7:42 am
by HighAley
Hello.

Unfortunately, there is no such sample project. Maybe we don't exactly understand you. What kind of control do you want to add? Please, describe it more detailed.

Thank you.

Re: Using our own user controls in a report

Posted: Thu Jan 09, 2014 2:20 pm
by bgorter
I have lots of user controls within my application. I want to be able to use these within a report. I would like my users to be able to drop one of my user controls onto a report. My user control would populate itself based on a parameter passed into the report.

Re: Using our own user controls in a report

Posted: Fri Jan 10, 2014 8:13 am
by HighAley
Hello.

Our report engine which renders report should know behaviour of all components to do it right.
We sent you the sample project where you could see how to create custom components.
It's impossible to use external controls in the report. All components of the report should be inherited from StiComponent
As a way you could handle drop event in Designer and replace your controls with right components of the report.

Thank you.