I am using the 2011 Reporting CTP to try anb write code that will take a XamWebChart instance, stick it in a report, then print it. This is all in SL4 and, ideally, no XAML would be involved. I cannot seem to find any useful documentation or samples regarding the relevant classes (Report, Section).
This was a trivial task with Telerik's libraries, but I have not been able to determine how this can be accomplished using Infragistics' libraries.
Hi,
The way to add have a chart printed with the Reporting tool is to create a report in Visual Studio, select a DataSource, drop a chart control on it, attach it to the datasource, set the chart type, etc.
It seems that what you are trying to do is to print a XamWebChart instance. Am I understanding it correctly?
Thanks,
Andres
Hello, Andres: thanks for the quick reply.
Printing is one of the things I want to do with XamWebChart instances, yes. I will also be trying to export them to a variety of formats, but my first experiments have been with simple printing.
In my case I have no DataSource as such, and cannot find documentation on how to construct one that contains a XamWebChart instance. I have no chart control to drop on anything, as the XamWebChart instances are all created dynamically at runtime.
It seems to me like I ought to be able to write code that looks something like this:
var report = new Report();
report.AddSection(myChart)
report.Print(stream);
But it seems it is not that simple. I cannot find any documentatoin on the AddSection() member, so it is not clear that this is even remotely the correct approach. All of the available documentation seems to be focused on databound solutions.