I want to open 2 excel workbooks continuously(one after the one) in c#. How can I achieve this??
I used like below:
Response.ContentType = "application/vnd.ms-excel";
Response.AppendHeader("Content-Disposition", "attachment; filename=" + File1 + ".xls");
Response.TransmitFile(savepath);
HttpContext.Current.ApplicationInstance.CompleteRequest();
Response.ContentType = "application/vnd.ms-excel";
Response.AppendHeader("Content-Disposition", "attachment; filename=" + File2 + ".xls");
Response.TransmitFile(savepath);
HttpContext.Current.ApplicationInstance.CompleteRequest();
However, Only one excel is transmitted, How can I get the second one also???
Thanks in Advance
HTTP is limited in this respect that each request can only handle a single response – you’d need to look at other ways of approaching this, such as issuing multiple requests via scripting from the client side, or combining your files into a single archive file (such as a ZIP file) prior to transmission