Free Support Forum - aspose.com

How to create a httpresponse object?

Hi!

I have tried to find a simple way to create a httpresponse so the user can download a file created on the server. But witout luck!

I have a web site that will create a excel report with aspose.cells when a user clicks a button. When the report has been created I want the report to be sent to the user with a choice to download or to open it directly in excel. As I understand I need to create a httpresponse somehow. What is the most simple way to do this? It would be nice if you could give me all the declarations as well when creating the response object, I'm new to this, and code in vb.net. Thanks!

Regards,
Jens

No need to answer to this post. I found out what i did wrong.

I'm creating the excel file in a another vb.class file where the response object don't exist. I just returned the workbook back to the page where the user clicks the button and use the workbook.save command from there instead, where the response object exists.