Hi, maybe I'm not looking in the right place, but I can't find any samples of how to integrate ReportPlus into applications, nor can I find any documents.
Also - does the application need to be WPF or does this support WinForms? Thanks
So, I found one sample under the Documents\ReportPlus directory, however the sample is in bad shape. Doesn't compile and has a few dozen errors, missing libraries that I don't recognize. I did my best at fixing the errors, but still the app crashes on start with errors within IG libraries. I tried creating my own project, but just having IG report viewer in the form causes the app to dump with unhelpful errors in the IG libraries. I also manage to crash the ReportPlus desktop app on a all-too-frequent basis.
This is not how I envisioned this demo going...
I kinda feel like after all this wait and anticipation, I'm the kid that got socks and underwear for a Birthday present.
I really wanted this to work...
Hello,
The sample solution should be set to build under x86 configuration (due to some third-party dependencies), however the solution by default is loaded in Any CPU configuration since .vs folder is not part of the sample deployment.
Once you switch to x86 configuration you have to restore the missing NuGet packages. Restore NuGet Packages option is available from the context menu of the solution item in VS Solution Explorer.
After that the sample project should build fine, some time however it seems that VS cannot resolve properly one of the third-party dependencies referenced as a NuGet package so in these cases what should work is to unload/reload the project and then it builds fine.
If you have installed the SDK in a location different than the default one (\Program Files (x86)) the component won't be able to resolve automatically some of its modules loaded at run-time and that might cause the errors you mentioned. If that's the case then you'll have to specify the component modules location in your App static constructor:
static App() { // specify a custom location of R+ viewer modules ReportPlusViewerSettings.ModulesPath = @”[CustomModulesPath]"; ReportPlusBootstrapper.Initialize(); }
If you have installed the SDK in the default location then please provide more details about the errors you're seeing.
Best regards,Plamen
Hi, thanks for getting back to me. The only thing I hadn't tried is to switch to x86. I gave this a try right now, but it doesn't fix anything. Yes, updating the NuGet packages solved the build issues (save for a few that required a restart).
I tried manually setting the module path, however this doesn't work either. It appears the exception is happening within ReportPlusBootstrapper.Initialize()
An unhandled exception of type 'System.TypeInitializationException' occurred in Unknown Module.
Additional information: The type initializer for 'Infragistics.ReportPlus.Desktop.Samples.App' threw an exception.
Hi,
Have you set the modules path to a custom location or you're still using the default value under ProgramFiles (x86)?Is that value relative or absolute path?
Does the call stack have any useful information at the time this exception is shown?If yes, could you please send it to us?
As a final solution I'll suggest you to uninstall the SDK, delete the sample solution and then install it again.We have installed and verified on several machines that after switching to x86 and restoring the NuGet packages the adfdpp works fine.
Thanks,Plamen
Hello!
Please confirm if the solution provided by Plamen is confirmed.
Thanks in advance,
Javier