473,402 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Creating Word doc from ASP

CJM
Yes I can use Google too... but I haven't found the right article tutorial
yet (though still looking).

I want to create a Word document in ASP, which will be subsequently emailed
to a client, so it needs to look good, and the examples I have found so far
have been too simplistic.

I'm actually looking to be able to create a quotes for customers, so I
imagine someone out there has done something similar. And as you can
imagine, it has to be a fairly professional job.

I'm guessing that the best way to go about this is to use a template
document and to just edit the fields?

Anybody got any examples, pointers, suggestions, code for me to work from?

Thanks

Chris
Jul 19 '05 #1
7 1589
Does it HAVE to be MS Word? If it is a standard form with field data stamped
into it, I would use the PDF format and a product from Appligent called.
FDFMerge.

www.appligent.com

Good luck.

S

"CJM" <cj*******@newsgroups.nospam> wrote in message
news:#Y**************@tk2msftngp13.phx.gbl...
Yes I can use Google too... but I haven't found the right article tutorial
yet (though still looking).

I want to create a Word document in ASP, which will be subsequently emailed to a client, so it needs to look good, and the examples I have found so far have been too simplistic.

I'm actually looking to be able to create a quotes for customers, so I
imagine someone out there has done something similar. And as you can
imagine, it has to be a fairly professional job.

I'm guessing that the best way to go about this is to use a template
document and to just edit the fields?

Anybody got any examples, pointers, suggestions, code for me to work from?

Thanks

Chris

Jul 19 '05 #2
"CJM" <cj*******@newsgroups.nospam> wrote in
news:#Y**************@tk2msftngp13.phx.gbl:
I want to create a Word document in ASP, which will be subsequently
emailed to a client, so it needs to look good, and the examples I have
found so far have been too simplistic.


At the top of your ASP page:

Response.ContentType = "application/msword"

Then build the page just like you would any ASP file. When you run it,
it will return the contents as a Word doc. If you would like to do the
same for Excel:

Response.ContentType = "application/vnd.ms-excel"

Hope that helps,
Scott
Jul 19 '05 #3
na
If you have Adobe Pro on your server, would that work the same way to create
a PDF?... just a thought.

"Scott McNair" <sc**********@sfmco.takethispartout.com> wrote in message
news:Xn*******************@207.46.248.16...
"CJM" <cj*******@newsgroups.nospam> wrote in
news:#Y**************@tk2msftngp13.phx.gbl:
I want to create a Word document in ASP, which will be subsequently
emailed to a client, so it needs to look good, and the examples I have
found so far have been too simplistic.


At the top of your ASP page:

Response.ContentType = "application/msword"

Then build the page just like you would any ASP file. When you run it,
it will return the contents as a Word doc. If you would like to do the
same for Excel:

Response.ContentType = "application/vnd.ms-excel"

Hope that helps,
Scott

Jul 19 '05 #4
CJM
Scott,

This never occured to me. And I'm guessing I can get a pretty accurate
layout using CM & PT for units...

I'll have a go today, and postback later...

Thanks

Chris

"Scott McNair" <sc**********@sfmco.takethispartout.com> wrote in message
news:Xn*******************@207.46.248.16...
"CJM" <cj*******@newsgroups.nospam> wrote in
news:#Y**************@tk2msftngp13.phx.gbl:
I want to create a Word document in ASP, which will be subsequently
emailed to a client, so it needs to look good, and the examples I have
found so far have been too simplistic.


At the top of your ASP page:

Response.ContentType = "application/msword"

Then build the page just like you would any ASP file. When you run it,
it will return the contents as a Word doc. If you would like to do the
same for Excel:

Response.ContentType = "application/vnd.ms-excel"

Hope that helps,
Scott

Jul 19 '05 #5
CJM
Scott,

After some tinkering I realise I still have a bit of a problem.

This solution streams the word doc to the user... I dont want this to
happen - I need the file to be saved to the server.

Is this possible using this technique?

Cheers

Chris
Jul 19 '05 #6
CJM
Scratch that...

I've found a suitable solution here:
http://www.codeave.com/asp/code.asp?u_log=142

Chris

"CJM" <cj*******@newsgroups.nospam> wrote in message
news:Ow**************@TK2MSFTNGP12.phx.gbl...
Scott,

After some tinkering I realise I still have a bit of a problem.

This solution streams the word doc to the user... I dont want this to
happen - I need the file to be saved to the server.

Is this possible using this technique?

Cheers

Chris

Jul 19 '05 #7
"na" <na@na.na> wrote in news:xaa5d.154314$XP3.124904@edtnps84:
If you have Adobe Pro on your server, would that work the same way to
create a PDF?... just a thought.


Unfortunately, no. PDF is proprietary, and therefore isn't quite so easy
to mimic.
Jul 19 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: EJ | last post by:
Does anyone know if there is a class for creating doc files? I have seen ones for pdf and excel spreadsheets. Thanks in advance.
6
by: Kerri McDonald | last post by:
We have an application where the user fills out many screens and when they are done, we are supposed to display the text they entered in a word or excel format. That is fairly easily accomplished...
2
by: QQ | last post by:
I wanted to know how to make a properly formated word document from asp. Can some one direct me to all the propertise of CreateObject("word.application"). Thanks!
7
by: mike | last post by:
Hi, I am having difficulty in creating a thread using pthread_create. It seems that pthread_create does not execute 'program', and returns -1; I have checked the API but I am not sure why this...
12
by: enak | last post by:
I have found some code that shows how to convert an html form to Word. The message said to simply put the following in the Page_load: Response.ContentType = "application/ms-word"...
3
by: m3ckon | last post by:
Hi there, I can succesfully create a word doc from my asp.net page, but I have 2 issues I need to resolve in order to use it in my app: 1) Creating a table: I seem unable to create a table,...
5
by: darnnews | last post by:
Hi, I have been creating a database to keep track of press clippings, but I have hit a couple stumbling blocks. Any help is much appreciate. 1) Seeing if my query is done I have the...
0
by: PracticalApps | last post by:
I looked to find a canned solution to create a Word document in my application and just couldn't find anything that just gets to the point. I would think, and I may be making too strong of an...
2
by: beanie | last post by:
i am a beginer in c programming and i am trying to Create a Concordance of Word Count for a Text File but my code is not working.pls can anyone helpme out.here is my code: #include <stdio.h>...
2
by: uamusa | last post by:
I am Dynamically generating a proposal(report) in MS Word. By default the Paragraph Alignment is "Left". For the First 6 Paragraphs I set the Alignment to "Center", and then when attempting to...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.