Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: RE: ASP to Word: inline header


Message #1 by "Alfredo Yong" <alfredo_yong_linux@h...> on Fri, 22 Feb 2002 11:20:40 -0500
Ok, you don't need to say "Thanks". This is free help, etc. So you don't

really need to say "Thanks". Yes. You don't need to.



I was sick, can't help you further until now. If you don't want to save the

document as first option, insert this:



Response.AddHeader "Content-Disposition", "inline;filename=""" &

variable_with_file_name & """"



No prompt will arise.



Hope this help. And remember: You DON'T need to say thanks. All the time

I've used to find this FREE information for you is REALLY free. Not even a

THANK YOU is needed, Joe.

--







=================================================================

Alfredo_Yong@h...

Freelance Developer - Web systems

Expertise in ASP, DHTML, CSS, jscript, php, SQL & etc.



O'Hara, Elliott M <EMOHARA@k...> escribió en el mensaje de

noticias 148027@a..._web_howto...



IE security settings....



-----Original Message-----

From: Joe Ingle [mailto:Joe@k...]

Sent: Tuesday, February 19, 2002 12:03 AM

To: ASP Web HowTo

Subject: [asp_web_howto] RE: ASP to Word





Yeah, this doen't seem te working. I getting a promt to open from current

location or save to disk.



Any ideas??



-----Original Message-----

From: Alfredo Yong [mailto:alfredo_yong_linux@h...]

Sent: Tuesday, February 19, 2002 04:46

To: ASP Web HowTo

Subject: [asp_web_howto] RE: ASP to Word





Yeah. Open your page with an <% and put this sentence before anything else:

ResponseContentType = "application/vnd.ms-word"



Some way, magically, word will be open with your html document inside. In

word format.



This works also for Excel (but there is a bug in office 2000).





--







=================================================================

Alfredo_Yong@h...

Freelance Developer - Web systems

Expertise in ASP, DHTML, CSS, jscript, php, SQL & etc.

Available to contract.



Joe <joe@k...> escribió en el mensaje de noticias

147800@a..._web_howto...

>

> Hi Guys

>

> I'am developing am ap, and would like to add the facility for users to

> query a database and export the results to Word. I can acheive what I want

> using FileSystemObject to create a rich text doc, but is there a better

> way of doing it.

>

> I find rich text a bit long winded. Is it possible to create a formatted

> Word document from an html page??

>

> Thanks in advance

>

> Joe

>

>










$subst('Email.Unsub').






$subst('Email.Unsub').










  Return to Index