Link to home
Start Free TrialLog in
Avatar of nuno_fbo
nuno_fbo

asked on

Web Aplicattion send a .doc file to the browser

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
ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial