Free Support Forum - aspose.com

How to render client report definition files (.rdlc) directly to the Response stream without preview

Hi all,

i am exporting rdlc report to word perfectly

my requirement is i want to export local report without preview,

i.e. on button click word doc should be generate according to that RDLC report

any help, plz its urgent

thanks & regards
Saikrishna

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. Please see the following link to learn how to render reports programmatically:

http://www.aspose.com/documentation/ssrs-rendering-extensions/aspose.words-for-reporting-services/rendering-reports-programmatically.html

Hope this helps.

Best regards.

Hi thanks for your reply, but i am getting

this exception ,

Specified argument was out of the range of valid values.
Parameter name:
format
Exception Details: System.ArgumentOutOfRangeException: Specified argument
was out of the range of valid values.
Parameter name: format

Source
Error:


Line 222:
Line 223:        // Render the report.
Line 224:        byte[] reportBytes = report.Render(
Line 225:            format,
Line 226:            deviceInfo,

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for additional information. Please make sure you properly integrated Aspose.Words for Reporting Services with Report Viewer as described here:

http://www.aspose.com/documentation/ssrs-rendering-extensions/aspose.words-for-reporting-services/Configure-Aspose-Words-for-Reporting-Services.html

Also, please make sure you use correct export format: i.e

"AWDOC" for DOC

"AWDOCX" for DOCX

"AWRTF" for RTF

"AWWML" for WordML

"AWHTML" for HTML

"AWMHTML" for MHTML

"AWODT" for ODT

"AWTXT" for TXT

"AWXPS" for XPS

"AWEPUB" for EPUB

Best regards.