Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: RE: Help Help "Merging Data From ASP/ACCESS/W INWO RD"


Message #1 by "Jonathan Marshall" <jdmarsh2g@h...> on Wed, 12 Jun 2002 17:36:37 +0000
<html><div style='background-color:'><DIV>
<P>Yeah Mike that would be much appreciated. I was looking @ your e-mail address and wondered by chance of work on the NAVSTA
naval base in norfolk thats where I'm located. Im not government but contract for them???<BR><BR>For the data merging
information I thank you for that. The previous dev already set up a winword form. From asp how do you get that document to be
opened. I tried putting in the filename but it would open up the name&nbsp; of the asp file with the doc extension. Not sure
will keep trying until I get it. Any information is great!!!!<BR>Jonathan D. M<BR><BR></P>From: "Schelling,
Michael" <SCHELLIM@S...></DIV>
<DIV></DIV>&gt;Reply-To: "ASP Web HowTo" <ASP_WEB_HOWTO@P...>
<DIV></DIV>&gt;To: "ASP Web HowTo" <ASP_WEB_HOWTO@P...>
<DIV></DIV>&gt;Subject: [asp_web_howto] RE: Help Help "Merging Data From ASP/ACCESS/W INWO RD" 
<DIV></DIV>&gt;Date: Wed, 12 Jun 2002 12:24:29 -0400 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Since this morning I found out that when MS-Word 97 is called the .doc file 
<DIV></DIV>&gt;doesn't display properly. I'm doing a government form and everything is 
<DIV></DIV>&gt;layed out in a table. When it displays in 97 the table columns are 
<DIV></DIV>&gt;compressed together. You can drag them out with in MS-Word 97, but what a 
<DIV></DIV>&gt;drag. :-) 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Anyway, it works fine if with MS-Word 2000. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;In case you are interested I have some information about going from ASP to a 
<DIV></DIV>&gt;PDF file. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Mike 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;-----Original Message----- 
<DIV></DIV>&gt;From: Jonathan Marshall [mailto:jdmarsh2g@h...] 
<DIV></DIV>&gt;Sent: Wednesday, June 12, 2002 8:40 AM 
<DIV></DIV>&gt;To: ASP Web HowTo 
<DIV></DIV>&gt;Subject: [asp_web_howto] RE: Help Help "Merging Data From ASP/ACCESS/WINWO 
<DIV></DIV>&gt;RD" 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;thanks Michael I will check that out !!! 
<DIV></DIV>&gt;Jonathan 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; &gt;From: "Schelling, Michael" 
<DIV></DIV>&gt; &gt;Reply-To: "ASP Web HowTo" 
<DIV></DIV>&gt; &gt;To: "ASP Web HowTo" 
<DIV></DIV>&gt; &gt;Subject: [asp_web_howto] RE: Help Help "Merging Data From ASP/ACCESS/WINWO 
<DIV></DIV>&gt;RD" 
<DIV></DIV>&gt; &gt;Date: Wed, 12 Jun 2002 05:31:36 -0400 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt;Jonathan 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt;It just so happens that I had to learn about this yesterday. To build a 
<DIV></DIV>&gt; &gt;MS-Word document from an ASP file use: 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt;Response.ContentType = "application/msword" 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt;If you want the resulting document to come up in MS-Word instead of the 
<DIV></DIV>&gt; &gt;browser include this: 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt;Response.AddHeader "Content-Disposition", "attachment;filename=Name.doc" 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt;The above is explained at 
<DIV></DIV>&gt; &gt;http://www.infinetsoftware.com/content/officedocuments.asp 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt;There's an example at 
<DIV></DIV>&gt; &gt;http://www.aspalliance.com/steven.swafford/articles/word_doc.asp 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; Mike 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt;-----Original Message----- 
<DIV></DIV>&gt; &gt;From: Jonathan Marshall [mailto:jdmarsh2g@h...] 
<DIV></DIV>&gt; &gt;Sent: Tuesday, June 11, 2002 4:46 PM 
<DIV></DIV>&gt; &gt;To: ASP Web HowTo 
<DIV></DIV>&gt; &gt;Subject: [asp_web_howto] Help Help "Merging Data From ASP/ACCESS/WINWORD" 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt;Can anyone out there point me in the right direction of getting information 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; &gt;from the user &gt;&gt;&gt; entered into a database &gt;&gt;&gt; then
into a word doc format 
<DIV></DIV>&gt;to 
<DIV></DIV>&gt; &gt;be printed out?? 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt;Does anyone know the equivalent of this cold fusion tag in asp ??? 
<DIV></DIV>&gt; &gt;&gt;file="D:\users\share\data_mirror\tecr_form.doc"&gt; 
<DIV></DIV>&gt; &gt;I would like to emulate the same function as this just not sure how any 
<DIV></DIV>&gt; &gt;information would be greatly appreciated. 
<DIV></DIV>&gt; &gt;thanks 
<DIV></DIV>&gt; &gt;Jonathan 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; _____ 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt;Get your FREE download of MSN Explorer at http://explorer.msn.com 
<DIV></DIV>&gt; &gt; . 
<DIV></DIV>&gt; &gt;--- Improve your web design skills with these new books from Glasshaus. 
<DIV></DIV>&gt; &gt;Usable Web Menus 
<DIV></DIV>&gt; &gt;http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme 
<DIV></DIV>&gt; &gt;r-20 Constructing Accessible Web Sites 
<DIV></DIV>&gt; &gt;http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme 
<DIV></DIV>&gt; &gt;r-20 Practical JavaScript for the Usable Web 
<DIV></DIV>&gt; &gt;http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme 
<DIV></DIV>&gt; &gt;r-20 --- Change your mail options at http://p2p.wrox.com/manager.asp or to 
<DIV></DIV>&gt; &gt;unsubscribe send a blank email to  
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt;--- 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt;Improve your web design skills with these new books from Glasshaus. 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt;Usable Web Menus 
<DIV></DIV>&gt; &gt;http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme 
<DIV></DIV>&gt; &gt;r-20 
<DIV></DIV>&gt; &gt;Constructing Accessible Web Sites 
<DIV></DIV>&gt; &gt;http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme 
<DIV></DIV>&gt; &gt;r-20 
<DIV></DIV>&gt; &gt;Practical JavaScript for the Usable Web 
<DIV></DIV>&gt; &gt;http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme 
<DIV></DIV>&gt; &gt;r-20 
<DIV></DIV>&gt; &gt;--- 
<DIV></DIV>&gt; &gt;
<DIV></DIV>&gt; &gt;
<DIV></DIV>&gt; 
<DIV></DIV>&gt; _____ 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Join the world's largest e-mail service with MSN Hotmail. Click Here 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;--- Improve your web design skills with these new books from Glasshaus. 
<DIV></DIV>&gt;Usable Web Menus 
<DIV></DIV>&gt;http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme 
<DIV></DIV>&gt;r-20 Constructing Accessible Web Sites 
<DIV></DIV>&gt;http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme 
<DIV></DIV>&gt;r-20 Practical JavaScript for the Usable Web 
<DIV></DIV>&gt;http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme 
<DIV></DIV>&gt;r-20 --- Change your mail options at http://p2p.wrox.com/manager.asp or to 
<DIV></DIV>&gt;unsubscribe send a blank email to  
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;--- 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Improve your web design skills with these new books from Glasshaus. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Usable Web Menus 
<DIV></DIV>&gt;http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme 
<DIV></DIV>&gt;r-20 
<DIV></DIV>&gt;Constructing Accessible Web Sites 
<DIV></DIV>&gt;http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme 
<DIV></DIV>&gt;r-20 
<DIV></DIV>&gt;Practical JavaScript for the Usable Web 
<DIV></DIV>&gt;http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme 
<DIV></DIV>&gt;r-20 
<DIV></DIV>&gt;--- 
<DIV></DIV>&gt;
<DIV></DIV>&gt;
<DIV></DIV></div><br clear=all><hr>Chat with friends online, try MSN Messenger: <a
href='http://g.msn.com/1HM505401/43'>Click Here</a><br></html>
Message #2 by "Schelling, Michael" <schellim@s...> on Wed, 12 Jun 2002 12:24:29 -0400
Since this morning I found out that when MS-Word 97 is called the .doc file
doesn't display properly. I'm doing a government form and everything is
layed out in a table. When it displays in 97 the table columns are
compressed together. You can drag them out with in MS-Word 97, but what a
drag. :-)
 
Anyway, it works fine if with MS-Word 2000. 
 
In case you are interested I have some information about going from ASP to a
PDF file. 
 
Mike

-----Original Message-----
From: Jonathan Marshall [mailto:jdmarsh2g@h...]
Sent: Wednesday, June 12, 2002 8:40 AM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: Help Help "Merging Data From ASP/ACCESS/WINWO
RD"



thanks Michael I will check that out !!!
Jonathan



>From: "Schelling, Michael" 
>Reply-To: "ASP Web HowTo" 
>To: "ASP Web HowTo" 
>Subject: [asp_web_howto] RE: Help Help "Merging Data From ASP/ACCESS/WINWO
RD" 
>Date: Wed, 12 Jun 2002 05:31:36 -0400 
> 
>Jonathan 
> 
>It just so happens that I had to learn about this yesterday. To build a 
>MS-Word document from an ASP file use: 
> 
>Response.ContentType = "application/msword" 
> 
>If you want the resulting document to come up in MS-Word instead of the 
>browser include this: 
> 
>Response.AddHeader "Content-Disposition", "attachment;filename=Name.doc" 
> 
>The above is explained at 
>http://www.infinetsoftware.com/content/officedocuments.asp 
> 
> 
>There's an example at 
>http://www.aspalliance.com/steven.swafford/articles/word_doc.asp 
> 
> 
> Mike 
> 
>-----Original Message----- 
>From: Jonathan Marshall [mailto:jdmarsh2g@h...] 
>Sent: Tuesday, June 11, 2002 4:46 PM 
>To: ASP Web HowTo 
>Subject: [asp_web_howto] Help Help "Merging Data From ASP/ACCESS/WINWORD" 
> 
> 
>Can anyone out there point me in the right direction of getting information

>from the user >>> entered into a database >>> then into a word doc format
to 
>be printed out?? 
> 
>Does anyone know the equivalent of this cold fusion tag in asp ??? 
>>file="D:\users\share\data_mirror\tecr_form.doc"> 
>I would like to emulate the same function as this just not sure how any 
>information would be greatly appreciated. 
>thanks 
>Jonathan 
> 
> 
> _____ 
> 
>Get your FREE download of MSN Explorer at http://explorer.msn.com 
> . 
>--- Improve your web design skills with these new books from Glasshaus. 
>Usable Web Menus 
>http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme 
>r-20 Constructing Accessible Web Sites 
>http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme 
>r-20 Practical JavaScript for the Usable Web 
>http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme 
>r-20 --- Change your mail options at http://p2p.wrox.com/manager.asp or to 
>unsubscribe send a blank email to  
> 
> 
> 
> 
>--- 
> 
>Improve your web design skills with these new books from Glasshaus. 
> 
>Usable Web Menus 
>http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme 
>r-20 
>Constructing Accessible Web Sites 
>http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme 
>r-20 
>Practical JavaScript for the Usable Web 
>http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme 
>r-20 
>--- 

  _____  

Join the world's largest e-mail service with MSN Hotmail. Click Here
<http://g.msn.com/1HM505401/47> 
--- Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20 Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20 Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20 --- Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to 


Message #3 by "Jonathan Marshall" <jdmarsh2g@h...> on Wed, 12 Jun 2002 12:39:47 +0000
<html><div style='background-color:'><DIV>
<P>thanks again Ken much appreciated<BR>jonathan<BR><BR></P></DIV>
<DIV></DIV>
<DIV></DIV>&gt;From: "Ken Schaefer" <KEN@A...>
<DIV></DIV>&gt;Reply-To: "ASP Web HowTo" <ASP_WEB_HOWTO@P...>
<DIV></DIV>&gt;To: "ASP Web HowTo" <ASP_WEB_HOWTO@P...>
<DIV></DIV>&gt;Subject: [asp_web_howto] Re: Help Help "Merging Data From ASP/ACCESS/WINWORD" 
<DIV></DIV>&gt;Date: Wed, 12 Jun 2002 17:50:41 +1000 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
<DIV></DIV>&gt;From: "Jonathan Marshall" <JDMARSH2G@H...>
<DIV></DIV>&gt;Subject: [asp_web_howto] Help Help "Merging Data From ASP/ACCESS/WINWORD" 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;: Can anyone out there point me in the right direction of 
<DIV></DIV>&gt;: getting information from the user &gt;&gt;&gt; entered into a database 
<DIV></DIV>&gt;: &gt;&gt;&gt; then into a word doc format to be printed out?? 
<DIV></DIV>&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;You create a HTML form. You post the form to an ASP page. You get the values 
<DIV></DIV>&gt;of the HTML form elements via the Request.Form() collection, or the 
<DIV></DIV>&gt;Request.QueryString() collection if you use method="Get" for your form. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;You then use ADO to put the data into a database. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;If you want to dynamically create a Word document, you need to use Office 
<DIV></DIV>&gt;Automation - instantiate an MS Word object on the server and put the data 
<DIV></DIV>&gt;you want in, then save the Word document. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;There are numerous links that you can find at www.google.com for handling 
<DIV></DIV>&gt;all these things. If you get stuck at a particular point, please feel free 
<DIV></DIV>&gt;to post again. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
<DIV></DIV>&gt;: Does anyone know the equivalent of this cold fusion tag in asp ??? 
<DIV></DIV>&gt;: <CFCONTENT type='application/msword"' DIV
<>&gt;file="D:\users\share\data_mirror\tecr_form.doc"&gt; 
<DIV></DIV>&gt;: I would like to emulate the same function as this just not sure how any 
<DIV></DIV>&gt;information would be greatly appreciated. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;You need to set the ContentType property of the Response object 
<DIV></DIV>&gt; -or- 
<DIV></DIV>&gt;Directly add the appropriate HTTP header 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Response.ContentType = "application/msword" 
<DIV></DIV>&gt; -or- 
<DIV></DIV>&gt;Response.AddHeader "contenttype", "application/msword" 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;You'll need to use the Response.BinaryWrite() method to stream the data to 
<DIV></DIV>&gt;the client. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Cheers 
<DIV></DIV>&gt;Ken 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;--- 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Improve your web design skills with these new books from Glasshaus. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Usable Web Menus 
<DIV></DIV>&gt;http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme 
<DIV></DIV>&gt;r-20 
<DIV></DIV>&gt;Constructing Accessible Web Sites 
<DIV></DIV>&gt;http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme 
<DIV></DIV>&gt;r-20 
<DIV></DIV>&gt;Practical JavaScript for the Usable Web 
<DIV></DIV>&gt;http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme 
<DIV></DIV>&gt;r-20 
<DIV></DIV>&gt;--- 
<DIV></DIV>&gt;
<DIV></DIV>&gt;
<DIV></DIV></div><br clear=all><hr>Send and receive Hotmail on your mobile device: <a
href='http://g.msn.com/1HM505401/45'>Click Here</a><br></html>
Message #4 by "Jonathan Marshall" <jdmarsh2g@h...> on Wed, 12 Jun 2002 12:40:18 +0000
<html><div style='background-color:'><DIV>
<P>thanks Michael I will check that out !!!<BR>Jonathan<BR><BR></P></DIV>
<DIV></DIV>
<DIV></DIV>&gt;From: "Schelling, Michael" <SCHELLIM@S...>
<DIV></DIV>&gt;Reply-To: "ASP Web HowTo" <ASP_WEB_HOWTO@P...>
<DIV></DIV>&gt;To: "ASP Web HowTo" <ASP_WEB_HOWTO@P...>
<DIV></DIV>&gt;Subject: [asp_web_howto] RE: Help Help "Merging Data From ASP/ACCESS/WINWO RD" 
<DIV></DIV>&gt;Date: Wed, 12 Jun 2002 05:31:36 -0400 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Jonathan 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;It just so happens that I had to learn about this yesterday. To build a 
<DIV></DIV>&gt;MS-Word document from an ASP file use: 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Response.ContentType = "application/msword" 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;If you want the resulting document to come up in MS-Word instead of the 
<DIV></DIV>&gt;browser include this: 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Response.AddHeader "Content-Disposition", "attachment;filename=Name.doc" 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;The above is explained at 
<DIV></DIV>&gt;http://www.infinetsoftware.com/content/officedocuments.asp 
<DIV></DIV>&gt;<HTTP: content officedocuments.asp www.infinetsoftware.com> 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;There's an example at 
<DIV></DIV>&gt;http://www.aspalliance.com/steven.swafford/articles/word_doc.asp 
<DIV></DIV>&gt;<HTTP: word_doc.asp articles steven.swafford www.aspalliance.com> 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; Mike 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;-----Original Message----- 
<DIV></DIV>&gt;From: Jonathan Marshall [mailto:jdmarsh2g@h...] 
<DIV></DIV>&gt;Sent: Tuesday, June 11, 2002 4:46 PM 
<DIV></DIV>&gt;To: ASP Web HowTo 
<DIV></DIV>&gt;Subject: [asp_web_howto] Help Help "Merging Data From ASP/ACCESS/WINWORD" 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Can anyone out there point me in the right direction of getting information 
<DIV></DIV>&gt;from the user &gt;&gt;&gt; entered into a database &gt;&gt;&gt; then into a
word doc format to 
<DIV></DIV>&gt;be printed out?? 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Does anyone know the equivalent of this cold fusion tag in asp ??? 
<DIV></DIV>&gt;<CFCONTENT type='application/msword"' DIV
<>&gt;file="D:\users\share\data_mirror\tecr_form.doc"&gt; 
<DIV></DIV>&gt;I would like to emulate the same function as this just not sure how any 
<DIV></DIV>&gt;information would be greatly appreciated. 
<DIV></DIV>&gt;thanks 
<DIV></DIV>&gt;Jonathan 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; _____ 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Get your FREE download of MSN Explorer at http://explorer.msn.com 
<DIV></DIV>&gt;<HTTP: 44 1HM505401 g.msn.com> . 
<DIV></DIV>&gt;--- Improve your web design skills with these new books from Glasshaus. 
<DIV></DIV>&gt;Usable Web Menus 
<DIV></DIV>&gt;http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme 
<DIV></DIV>&gt;r-20 Constructing Accessible Web Sites 
<DIV></DIV>&gt;http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme 
<DIV></DIV>&gt;r-20 Practical JavaScript for the Usable Web 
<DIV></DIV>&gt;http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme 
<DIV></DIV>&gt;r-20 --- Change your mail options at http://p2p.wrox.com/manager.asp or to 
<DIV></DIV>&gt;unsubscribe send a blank email to  
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;--- 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Improve your web design skills with these new books from Glasshaus. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Usable Web Menus 
<DIV></DIV>&gt;http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme 
<DIV></DIV>&gt;r-20 
<DIV></DIV>&gt;Constructing Accessible Web Sites 
<DIV></DIV>&gt;http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme 
<DIV></DIV>&gt;r-20 
<DIV></DIV>&gt;Practical JavaScript for the Usable Web 
<DIV></DIV>&gt;http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme 
<DIV></DIV>&gt;r-20 
<DIV></DIV>&gt;--- 
<DIV></DIV>&gt;
<DIV></DIV>&gt;
<DIV></DIV></div><br clear=all><hr>Join the world?s largest e-mail service with MSN Hotmail. <a
href='http://g.msn.com/1HM505401/47'>Click Here</a><br></html>
Message #5 by "Schelling, Michael" <schellim@s...> on Wed, 12 Jun 2002 05:31:36 -0400
Jonathan
 
It just so happens that I had to learn about this yesterday. To build a
MS-Word document from an ASP file use:
 
Response.ContentType = "application/msword"
 
If you want the resulting document to come up in MS-Word instead of the
browser include this:
 
Response.AddHeader "Content-Disposition", "attachment;filename=Name.doc"
 
The above is explained at
http://www.infinetsoftware.com/content/officedocuments.asp
<http://www.infinetsoftware.com/content/officedocuments.asp> 
 
There's an example at
http://www.aspalliance.com/steven.swafford/articles/word_doc.asp
<http://www.aspalliance.com/steven.swafford/articles/word_doc.asp> 
 
     Mike

-----Original Message-----
From: Jonathan Marshall [mailto:jdmarsh2g@h...]
Sent: Tuesday, June 11, 2002 4:46 PM
To: ASP Web HowTo
Subject: [asp_web_howto] Help Help "Merging Data From ASP/ACCESS/WINWORD"


Can anyone out there point me in the right direction of getting information
from the user >>> entered into a database >>> then into a word doc format to
be printed out??
 
Does anyone know the equivalent of this cold fusion tag in asp ???
<cfcontent type=application/msword"
file="D:\users\share\data_mirror\tecr_form.doc">
I would like to emulate the same function as this just not sure how any
information would be greatly appreciated. 
thanks 
Jonathan
 

  _____  

Get your FREE download of MSN Explorer at http://explorer.msn.com
<http://g.msn.com/1HM505401/44> .
--- Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20 Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20 Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20 --- Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to 


Message #6 by "Ken Schaefer" <ken@a...> on Wed, 12 Jun 2002 17:50:41 +1000
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "Jonathan Marshall" <jdmarsh2g@h...>
Subject: [asp_web_howto] Help Help "Merging Data From ASP/ACCESS/WINWORD"


: Can anyone out there point me in the right direction of
: getting information from the user >>> entered into a database
: >>> then into a word doc format to be printed out??
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

You create a HTML form. You post the form to an ASP page. You get the values
of the HTML form elements via the Request.Form() collection, or the
Request.QueryString() collection if you use method="Get" for your form.

You then use ADO to put the data into a database.

If you want to dynamically create a Word document, you need to use Office
Automation - instantiate an MS Word object on the server and put the data
you want in, then save the Word document.

There are numerous links that you can find at www.google.com for handling
all these things. If you get stuck at a particular point, please feel free
to post again.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: Does anyone know the equivalent of this cold fusion tag in asp ???
: <cfcontent type=application/msword"
file="D:\users\share\data_mirror\tecr_form.doc">
: I would like to emulate the same function as this just not sure how any
information would be greatly appreciated.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

You need to set the ContentType property of the Response object
    -or-
Directly add the appropriate HTTP header

Response.ContentType = "application/msword"
    -or-
Response.AddHeader "contenttype", "application/msword"

You'll need to use the Response.BinaryWrite() method to stream the data to
the client.

Cheers
Ken


Message #7 by "Jonathan Marshall" <jdmarsh2g@h...> on Tue, 11 Jun 2002 20:45:59 +0000
<html><div style='background-color:'><DIV>Can anyone out there point me in the right
direction of getting information from the user &gt;&gt;&gt; entered into a database &gt;&gt;&gt; then into a
word doc format to be printed out??</DIV>
<DIV>&nbsp;</DIV>
<DIV>Does anyone know the equivalent of this cold fusion tag in asp ???<BR>&lt;cfcontent type=application/msword"
file="D:\users\share\data_mirror\tecr_form.doc"&gt;</DIV>
<DIV>I would like to emulate the&nbsp;same function as this just not sure how any information would be greatly
appreciated. <BR>thanks <BR>Jonathan<BR>&nbsp;</DIV></div><br clear=all><hr>Get your
FREE download of MSN Explorer at <a
href='http://g.msn.com/1HM505401/44'>http://explorer.msn.com</a>.<br></html>

  Return to Index