Search code examples
excelreporting-serviceschartsofficewriter

Can I create a non-pie chart using Excelwriter and SSRS Integration?


I'm using SoftArtisans ExcelWriter for SSRS (ver 8.6), and am wondering if it is possible to create a (non-pie) chart, e.g. a Stacked Bar chart, that has multiple series?

I can create pie charts easily enough, and that is what the help docs show, but there is no samples for other types of charts for SSRS integration.

The excel template is embedded in the .rdl file, and the spreadsheet is created when the user exports the generated report using OfficeWriter's Excel rendering extension. However the report is run manually by users, so I don't have the ability to execute any code to modify the Excel object before the user sees it.

Can anyone either confirm that only pie charts are possible for SSRS Integration, or provide some insight into how other chart types are possible?


Solution

  • You should be able to create any type of chart.

    The way that OfficeWriter SSRS integration works (and just the plain Template object for that matter), is that it takes all of your data and inserts it into your data markers. Then it finds references in your workbook that pointed to your data markers, and expands them to point to all of the new inserted data.

    So really you can add any type of chart. You just have to make sure that the chart you create points to the data markers as the source data.

    A data marker will correspond to a single series or to horizontal axis data. Then as the data is populated, the values in the series are populated.

    On our reporting demo page there's a link at the bottom that says "View Report Template" that you can click on to download and Excel file that shows a variety of different charts pointing to data markers.