Although Reporting Services is almost 22 months old, I haven't found any pure render extension yet (please comment on this[:-*]). Many people ask me 'how can I export reports in Microsoft Word format?', and I usually redirect them to our BOL. But after looking up in the RS documentation, I realized that it is not as straighforward as expected, so I will try to simplify it.
ReportingService.Render Method
You can find easily this method in the documentation , it explain how to render a built report programmatically. In our sample the most important parameters are:
Then we can take a closer look to the XML Device Information Settings.
Here we have (XSLT, MIMEType, UseFormattedValues, Indented, OmitSchema, Encoding, FileExtension, Schema), I will comment the first one XSLT. It will be the path in the report server namespace of an XSLT to apply to the XML file. This means that you can upload a XSL file, and include its path here.
The approach I'm following to create Microsoft Word Format, is based on WordML Format, and you can use:
to see the final doc.
Is there an easy way?
Well, you can follow the sample and create an application that creates a WordML file....or you can use Reporting Services URL Access and do it in a simple way.
So we follow these steps:
And that's it, we have our WordML report.
We could create RTF documents following the same pattern.
What about better documentation
Yes, I know BOL RS could be better (Eyerthing can improve!), and that is the reason we heard from customers and improve the documentation (and improve the searching [;)])!
Check the MSDN / MSDN2 docs:
HTML Report
WordML Report
BOL, RS, WordML, XSLT, URL, IF, RTF, XML, PDF, CSV, MSDN
[Updated links MSDN / MSDN2 18-Oct-2005]
[Updated text and transform01 22-Mar-2006]
Check out Aspose.Words for Reporting Services that we have just released http://www.aspose.com/Products/Aspose.WordsRS/
It is a rendering extension for Microsoft SQL Server 2005 Reporting Services that adds export to DOC, RTF and WordprocessingML.
We were able to do that because we have a technology - Aspose.Words for .NET is a component for server-side document processing. It is a mature product, over 3 years, many customers, it provides an object model and comprehensive support for DOC, RTF, WordML and HTML formats.
We developed Aspose.Words for Reporting Services on top of Aspose.Words for .NET.