reporting services - Compare SSRS report values with C# variables -
i have compare data contained in rendered ssrs report (chart , tablix values example) variables stored in c# application. how can done?
so far know generating report in xml , parsing xml desired data. there easier way achieve without user interaction? alternatively, there way drop report chart/tablix data array or list in c#?
you have 1 special requirement there... might if tell why want this, because there may other solutions actual problem.
having said that, if want "compare data contained in rendered ssrs reports" "variables stored in c#", have best approach already. given approach, seem suppose there's user interaction needed generate xml, it's not: there's the ssrs web service can run reports without users intervening. the render method allows specify format:
format
type: system.string
format in render report. argument maps rendering extension. supported extensions include xml, null, csv, image, pdf, html4.0, html3.2, mhtml, excel, , word.
guessing @ actual case being need check if report data "correct" comparing c#-generated data, i'd suggest different approach though. place data-logic can in views or stored procs, use in reports, , in c# compare calculated results results read view through ado.net. easier parsing ssrs xml reports (though bit less reliable, because ssrs may still screw interpretation of data).
Comments
Post a Comment