Passing Data to Report
Posted: Wed Oct 10, 2012 3:26 pm
Hello,
I'm trying out the trial for this product before our company buys it, and I can't seem to figure out how to hand data off to a report created in the designer. I've tried looking through the documentation, but there isn't much specific to WinRT. I can get a report to show using this:
However, I want to hand it some data before rendering & printing. Let's just say, for example, I wan to pass a ProductName and ProductQuantity to the report. Do I use BusinessObjects or some kind of DataSource? report.RegBusinessObject doesn't seem to do much for me, but maybe I'm doing it wrong.
Looking forward to your reply. Thanks.
-Andy
I'm trying out the trial for this product before our company buys it, and I can't seem to figure out how to hand data off to a report created in the designer. I've tried looking through the documentation, but there isn't much specific to WinRT. I can get a report to show using this:
Code: Select all
StiReport report = new StiReport();
await report.LoadAsync(storageFile);
await report.RenderAsync();
viewerControl.Report = report;
Looking forward to your reply. Thanks.
-Andy