Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: ASP to Word


Message #1 by "Joe" <joe@k...> on Tue, 19 Feb 2002 08:55:12
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
Message #2 by "Alfredo Yong" <alfredo_yong_linux@h...> on Tue, 19 Feb 2002 11:45:52 -0500
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

>

>





Message #3 by Joe Ingle <Joe@k...> on Tue, 19 Feb 2002 05:02:57 -0000
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 =3D "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).





--







=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Alfredo_Yong@h...

Freelance Developer - Web systems

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

Available to contract.



Joe <joe@k...> escribi=F3 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').

Message #4 by "O'Hara, Elliott M" <EMOHARA@k...> on Tue, 19 Feb 2002 12:52:04 -0500
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 =3D "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).





--







=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Alfredo_Yong@h...

Freelance Developer - Web systems

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

Available to contract.



Joe <joe@k...> escribi=F3 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').

Message #5 by Joe Ingle <Joe@k...> on Tue, 19 Feb 2002 06:04:16 -0000
Cheers Elliott



That kind of puts the kibosh on things. I don't know for sure that 

users

aren't going to have the same settings. I'll have to bypass this by

exporting and auto saving as a word doc.



Joe



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

From: O'Hara, Elliott M [mailto:EMOHARA@k...]

Sent: Tuesday, February 19, 2002 05:52

To: ASP Web HowTo

Subject: [asp_web_howto] RE: ASP to Word





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 =3D "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).





--







=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Alfredo_Yong@h...

Freelance Developer - Web systems

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

Available to contract.



Joe <joe@k...> escribi=F3 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').






$subst('Email.Unsub').


  Return to Index