Hi All,
I'm having a bit of trouble deciding on the best approach to this scenario.
The app I'm currently working on has a requirement to produce reports in both Excel and PDF formats. Originally I was looking at using a FlowDocument to construct the report and then output from this.
However, since we have the Infragistics Ultimate collection it makes far more sense to use this set of controls to solve the problem.
However, before I can commit to this I would like to know how it's going to work at a high level.
It appears that the Excel engine and Reporting stuff are very different beasts. Are there any common/shared things between them that could be used to reduce the target format to a small detail in he implementation?
I'm a bit lost in Infragistics options.
Hello,
It has been a while since you have made your post, in case you still need support I will be glad to assist you further. I suppose the other community members can benefit from this answer as well. I have been looking into your post and I created sample project for you showing the functionality you want.
Feel free to write me if you have further questions.
I've followed this walkthrough exactly:
How to Bind a Report to an Object Data Source
All I get is a threading exception regarding STA threads. Any reply at all would be useful right now ...
I've just been trying to figure out how the reporting samples are put together.
They are tool convoluted for an introduction to this framework. There is even commented out code in there, and even duplicated classes ...
3 developers here are still trying to figure out the basics and get at least a working demo together to prove this is going to do what we need it too ... disheartened chaps ... the demo app is near useless as an intro in it's current state.
OK, I've gotten this working now but I now get a threading exception ....
Infragistics.Reports.Engine.EngineException: Error in DataSource Product. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: The calling thread must be STA, because many UI components require this. at System.Windows.Input.InputManager..ctor()
I've followed the tutorial and it hasn't mentioned anything about dealing with threading issues ...
Trying to add an object data source using the wizard is completely failing:
My test class looks like:
public class ReportBuilder { public string ReportTitle { get; set; } public XamDataGrid DemoGridData { get; set; } public IEnumerable<string> SomeTestData { get; set; } public ReportBuilder() { ReportTitle = "TestReport"; DemoGridData = new XamDataGrid {BindToSampleData = true}; } public IEnumerable<string> GetData() { SomeTestData = new List<string> {"test", "Test2"}; return SomeTestData; } }
All the buttons in the Report Data Exloperer are disabled. When clicking on the DataSource Invitation I get the expected wizard but selecting my class doesn't leist any methods or properties from the class: