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
It must have been a bad initial install. I uninstalled/reinstalled and it is working, now, thanks.
Looks good so far, however I'm wondering if there's a way to build custom reports within the application? Let me give a little background: Our legacy IG reporting apps call SQL stored procs that do the heavy number processing and then return a dataset. that individual tables in the dataset are then created into a polished dashboard. The user has full control over formatting, pivoting data, presentation layer/grid/chart, etc.
Basically we'd like to replicate the same, but using ReportPlus, and allow a prettier UI for formatting. (our report creation UI is powerful but old looking). So basically we'd like to dynamically create datasources based on stored proc output and then limit the report creation to these (and some other reference data) The problem I'm having with the ReportPlus designer is it appears to require some manual selecting tables, etc. We want to set those up ahead of time based on the SQL dataset returned.
And of course, we'd like to launch the designer from within our app with a different set of datasources based on the SQL dataset returned.
Thanks!
Hello!
Please confirm if the solution provided by Plamen is confirmed.
Thanks in advance,
Javier
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
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.
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