If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > opening word document with database content using ASP

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-12-05, 07:49
oliflorence oliflorence is offline
Registered User
 
Join Date: Aug 2004
Posts: 96
opening word document with database content using ASP

Hello,
I am building a site with reports in tables etc.
I have been asked to open the report in a word document rather than a web page, the page is to be presented with a logo on the top, colours etc.
I know it is possible to open the data in a word document, however formatting it to show a presentable document seems to be more of a problem.

Any idea on how this could be done?

Thanking you,
Olivier
Reply With Quote
  #2 (permalink)  
Old 12-12-05, 11:00
fredservillon fredservillon is offline
Registered User
 
Join Date: Oct 2005
Posts: 178
Quote:
Originally Posted by oliflorence
Hello,
I am building a site with reports in tables etc.
I have been asked to open the report in a word document rather than a web page, the page is to be presented with a logo on the top, colours etc.
I know it is possible to open the data in a word document, however formatting it to show a presentable document seems to be more of a problem.

Any idea on how this could be done?

Thanking you,
Olivier
IF the data to view is static, you can use a image capturing tool and insert it as image, or
convert it to PDF file, or attach it for viewers to open as word document. Each one has pros and cons, depending on big is the word document, if you don't want user to modify it, etc..
Reply With Quote
  #3 (permalink)  
Old 12-13-05, 08:41
Bullschmidt Bullschmidt is offline
Guru
 
Join Date: Jun 2003
Location: USA
Posts: 1,032
Perhaps check these out:

Article: Dynamically Writing Office Documents
http://www.infinetsoftware.com/conte...edocuments.asp
Response.ContentType = "application/msword"
Response.AddHeader "Content-Disposition", "attachment;filename=receipt.doc"

How to use ASP to generate a Rich Text Format (RTF) document to stream to Microsoft Word
http://support.microsoft.com/kb/q270906/
Uses FSO.
__________________
J. Paul Schmidt, Freelance Web and Database Developer
www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips
Reply With Quote
  #4 (permalink)  
Old 12-14-05, 09:38
donaldt donaldt is offline
Registered User
 
Join Date: Jan 2002
Location: Nottingham - UK
Posts: 113
Word Toy

Hi - I did something in the past using WordToy, its worked very well, but depends if you wanted to code this by hand or not.......

ASPToys WordToy - WordToy creates Microsoft Word. documents on the fly and does not require Microsoft Word. on the server. WordToy is available as an ActiveX ASP server component (with or without VB6 source code) or as an ASP WebClass giving you, the developer full control for modifications.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On