We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Using Aspose.Word in Asp.net MVC 3

Good day!
I have a following question.
I build word document and I need to get it back through the browser.
In asp.net to send a file could be a HttpResponse, but in Asp.net MVC a different class. (HttpResponseBase).
How can I get out of the situation without saving the file to the server?

Kind regards,
Vitaly Vasilega


Thanks for your request. I think this problem is not related to Aspose.Words.

In additional, the HttpResponseBase class is an abstract class that contains the same members as the HttpResponse class. The HttpResponseBase class enables you to create derived classes that are like the HttpResponse class, but that you can customize and that work outside the ASP.NET pipeline. When you perform unit testing, you typically use a derived class to implement members that have customized behavior that fulfills the scenario you are testing.

The HttpResponseWrapper class derives from the HttpResponseBase class. The HttpResponseWrapper class serves as a wrapper for the HttpResponse class. At run time, you typically use an instance of the HttpResponseWrapper class to call members of the HttpResponse object.


Best regards,

Thank you.
But I solved the problem with the Stream.

Best regards,
Vitaly Vasilega


It is perfect, that you already found the way to resolve the problem. Please let us know in case of any issue. We will be glad to help you.

<span lang=“EN-US” style=“font-size:12.0pt;font-family:“Times New Roman”,“serif”;
mso-fareast-font-family:“Times New Roman”;mso-ansi-language:EN-US;mso-fareast-language:
JA;mso-bidi-language:AR-SA;layout-grid-mode:both”>Best regards