Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 22, 2012 09:59 AM by urenjoy
Dec 20, 2012 01:45 PM|LINK
I'm building a reporting application that produces reports in both Excel and Crystal report formats. In some cases I want to create a report directly in Excel using the Syncfusion XLSIO tool and sometimes I want to return a Crystal ReportDocument object
to display in the Crystal viewer. In both cases I could write the output to a file and then return base-64 encoded representation of that as a string but I'd like to handle this completely in memory without disk I/O.
Does anyone have any sample code showing how to return a complex object from a Web Api method to a browser?
Dec 22, 2012 09:59 AM|LINK
You can return stream as HttpResponseMessage from a Web Api method, check following:
Fast Downloading with Parallel Requests using ASP.NET Web API