?
Solved

Opening multiple Word documents in VB.net

Posted on 2007-10-11
4
Medium Priority
?
465 Views
Last Modified: 2008-01-09
I am currently opening up a Word docment in the browser from ASP.NET vb with the following code:
        Response.ContentType = "application/vnd.ms-word"
        Response.Redirect("filename.doc")
I need open more than one word document in MS Word and not in the browser window.
Could someone give me some recommendations?
Thanks.
John
0
Comment
Question by:jcpatterson
  • 2
  • 2
4 Comments
 
LVL 16

Accepted Solution

by:
McExp earned 1500 total points
ID: 20059504
you could do it with javascript

window.open('fullPath to Filename1.doc');
window.open('fullPath to Filename2.doc');
window.open('fullPath to Filename3.doc');
0
 
LVL 1

Author Comment

by:jcpatterson
ID: 20059744
McExp:
Possibly but I'm working with ASP/VB.net.  I am going to pass a value from a sub routine and I don't want to write javascript code in the code behind page.
John
0
 
LVL 16

Expert Comment

by:McExp
ID: 20059863
The problem you have is that if you make a request to the browser there will only be a single response. you can't create multiple responses.

You could do something with framesets?

I would still go with the Javascript solution though.

0
 
LVL 1

Author Comment

by:jcpatterson
ID: 20130698
What I needed to do was merge three word documents that were exported from Crystal Reports.  I ended up saving them as pdf files and merged the three pdf files.

John
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question