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 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
"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
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
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
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
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
"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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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.
|
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...
|
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!
|
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...
|
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"...
|
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,...
|
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...
|
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...
|
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>...
|
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...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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...
|
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...
|
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...
|
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,...
|
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...
| |