Custom Components Sample

Stimulsoft Reports.WPF discussion
Post Reply
kokot
Posts: 4
Joined: Tue May 27, 2014 12:44 pm

Custom Components Sample

Post by kokot »

Hello guys

I am evaluating your reporting solution.
When running Sample solutions I get following error in Custom Component solution

The error of compilation is found in the 'Report' report:
Could not load file or assembly 'CustomComponent.Wpf.exe' or one of its dependencies.

dependencies seems to be ok, so I don't know what is wrong.

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

Re: Custom Components Sample

Post by Alex K. »

Hello,

Please change the following code in the Window1.xaml:

Code: Select all

Title="Custom Component" Height="300" Width="300" WindowStartupLocation="CenterScreen" Icon="/CustomComponent;component/app.net.ico">
Thank you.
kokot
Posts: 4
Joined: Tue May 27, 2014 12:44 pm

Re: Custom Components Sample

Post by kokot »

Hello Aleksey

Thank you for your answer the error is still there.

I ran the CustomComponent project succesfully.
I open the designer, everything works But when I click on the report checker there is the error.
The error of compilation is found in the 'Report' report:
Could not load file or assembly 'CustomComponent.Wpf.exe' or one of its dependencies.

And by the way, what is this custom component that should be shown it is not clear from the sample project?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Custom Components Sample

Post by Alex K. »

Hello,

Please check the archive in the attachment.

Thank you.
Attachments
Untitled.png
Untitled.png (14.93 KiB) Viewed 3892 times
Custom Component.zip
(15.92 KiB) Downloaded 240 times
kokot
Posts: 4
Joined: Tue May 27, 2014 12:44 pm

Re: Custom Components Sample

Post by kokot »

The custom component is there, but the report checker throws that error.
So that error is ok and can be ignored?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Custom Components Sample

Post by Alex K. »

Hello,

Sorry for the mistake. Please try to change the folowing code in project (remove string "Wpf"):

Code: Select all

#region Add reference to your assembly
"CustomComponent.exe"   // old "CustomComponent.Wpf.exe"
#endregion
or in Referenced Assemblies property in desiger.

Thank you.
kokot
Posts: 4
Joined: Tue May 27, 2014 12:44 pm

Re: Custom Components Sample

Post by kokot »

Yeah it works, finally.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Custom Components Sample

Post by Alex K. »

Hello,

Let us know if you need any additional help.
Post Reply