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

Free Support Forum - aspose.com

How can we open documents in multiple IE browser

I have like this.

Document doc1 = new Document("test1.doc");
Document doc2 = new Document("test2.doc");

I am displaying these docs in test.aspx page.
I need to open second document while first document is open from the same aspx page.
Can we do like this?

doc1.Save("output1.doc", SaveFormat.Doc, Aspose.Words.SaveType.OpenInBrowser, this.Response);
doc2.Save("output2.doc", SaveFormat.Doc, Aspose.Words.SaveType.OpenInBrowser, this.Response);


Thanks for your request. No, it is impossible to send few documents in single Response. This is nor a restriction of Aspose.Words; this is a restriction of HTTP protocol.
Best regards.

Thanks Frebben. I agree with you. In addition, I would like to add server side code:

public partial class SendFile : System.Web.UI.Page
    protected void Page_Load(object sender, EventArgs e)
        if (Request.Params["fileID"] != null)
            // Create document and doc builder
            Document doc = new Document();
            DocumentBuilder builder = new DocumentBuilder(doc);
            switch (Request.Params["fileID"])
                case "1":
                    builder.Write("This is first document");
                case "2":
                    builder.Write("This is second document");
                    builder.Write("This is some other document");
            // send document to client browser
            doc.Save("out.doc", SaveFormat.Doc, SaveType.OpenInBrowser, Response);

Best regards.

This does not open multiple documents in multiple IE instance of same aspx page.
I have different data in two differenct documents. Both need to be opened seperately in two different IE instances but with the same aspx page. One opened first and next to open while first one is still in the browser.

Thanks for your inquiry. You should have something like the following:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<script language="javascript" type="text/javascript">
// <!CDATA[
function SendFiles()
// ]]>
<form id="form1" runat="server" >
 <input id="btnOpenDocs" type="button" value="Open documents" onclick="return SendFiles()" /></div>

I attached sample project for you.
Best regards,