Solved

Web Aplicattion send a .doc file to the browser

Posted on 2008-06-19
3
816 Views
Last Modified: 2013-12-08
Hi...

I need orietation to this situation, can you help me?

Do you know how can I get a .doc file in aspx.cs and show in a browser... It's
possible to do without ActiveX?

I want to make it possible to open the .doc on the client side...

After the aplication do the mail merge and generate the .doc file I want to
show the result in the browser... know I only save the new file and I can
open the .doc file... but I want to show in the client side...

I'm trying to do some tests... know I don't having sucess...

Give a look... I'm triyng a lot of things and this information don't make
sence, can you help me with you experience... If you can I appreciate...

//abrir .doc no browser
//string url = "http://localhost/";
//WebClient browser = new WebClient();
//UTF8Encoding enc = new UTF8Encoding();


//appWord.ActiveDocument.

docWord.Close(ref objFalse, ref objMiss, ref objMiss);

string browser = "http://localhost\\C:\\Documents and Settings\\Nuno
Oliveira\\My Documents\\Nuno Oliveira\\CV\\MailMerge" + utilizador + "." +
data + ".doc";

Page.ClientScript.RegisterStartupScript(GetType(), "test",
"window.open('" + browser +
"','_blank','Height=400,Width=700,menubar=No,toolbar=no,scrollbars=yes');");

// appWord.Visible = true;
//appWord.ShowMe();
//appWord.Quit(null, null, null);

//Server.Transfer("http://localhost\\C:\\Documents and
Settings\\Nuno Oliveira\\My Documents\\Nuno Oliveira\\CV\\MailMerge" +
utilizador + "." + data + ".doc");

//http://localhost\\C:\\Documents and Settings


Thanks a lot,
Regards,
Nuno Oliveira
0
Comment
Question by:nuno_fbo
3 Comments
 
LVL 108

Accepted Solution

by:
Ray Paseur earned 500 total points
Comment Utility
You can link directly to MS Word documents in plain old HTML:

<a href="my.doc" title="Word for Windows Document">See my document</a>
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

It's here again; Microsoft is launching a new version of Internet Explorer: Internet Explorer 9, with noticeable changes on its interface, functions and new tools. As they say on its promotional video: "It's time to play, on a more beautiful web", f…
This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now