473,385 Members | 1,748 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,385 software developers and data experts.

creating a word document from php

EJ
Does anyone know if there is a class for creating doc files? I have seen
ones for pdf and excel spreadsheets.
Thanks in advance.
Jul 17 '05 #1
5 9443
"EJ" <ej*******@uq.net.au> wrote:
Does anyone know if there is a class for creating doc files? I have seen
ones for pdf and excel spreadsheets.


http://www.google.com/search?q=php+create+word+document

HTH;
JOn
Jul 17 '05 #2
EJ wrote:
Does anyone know if there is a class for creating doc files? I have seen
ones for pdf and excel spreadsheets.


If you can rely on Office 2000 or later then I recommend generating a
Word compatible HTML document. That way you can link the same page as:
www.my-script.html
and www.my-script.doc

and hey-presto you get either a webpage or a document!

The easiest way to do this is to create a template in Word and save as
HTML. Use str_replace or regexps to fill in the content.

If you need to handle earlier Word then use RTF (rubbish text format) to
pass to Word. It's not as obvious though.

Jul 17 '05 #3
"EJ" <ej*******@uq.net.au> wrote in message news:<40********@news.comindico.com.au>...
Does anyone know if there is a class for creating doc files? I have seen
ones for pdf and excel spreadsheets.


Creating MS Word Doc is bit hard (IMHO). The best hack I have ever
seen is <http://groups.google.com/groups?selm=PEE4b.41571%24Qy4.22048%40fed1read05>

--
"Success is not what you achieve, but it is what you die for"
If you live in USA, please support John Edwards.
Email: rrjanbiah-at-Y!com
Jul 17 '05 #4
"EJ" <ej*******@uq.net.au> wrote in message news:<40********@news.comindico.com.au>...
Does anyone know if there is a class for creating doc files? I have seen
ones for pdf and excel spreadsheets.


Creating MS Word Doc is bit hard (IMHO). The best hack I have ever
seen is <http://groups.google.com/groups?selm=PEE4b.41571%24Qy4.22048%40fed1read05>

--
"Success is not what you achieve, but it is what you die for"
If you live in USA, please support John Edwards.
Email: rrjanbiah-at-Y!com
Jul 17 '05 #5
EJ
thanks
"Jon Kraft" <jo*@jonux.co.uk> wrote in message
news:Xn**************************@130.133.1.4...
"EJ" <ej*******@uq.net.au> wrote:
Does anyone know if there is a class for creating doc files? I have seen
ones for pdf and excel spreadsheets.


http://www.google.com/search?q=php+create+word+document

HTH;
JOn

Jul 17 '05 #6

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

Similar topics

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...
7
by: Zeke | last post by:
I'm using the following code to create word document but the problem is if you go to task manager you'll see a WINWORD.EXE process is running but not the application, here is the code: ...
0
by: volume | last post by:
Hi all, In an effort to try to impress the boss, I would like to log accounting information to an Excel spreadsheet using C# and .NET. This would be a mockup only, not a real solution - yet! We...
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,...
0
by: goof1972 | last post by:
Hello All, I have a VB.NET web application (1.1 framework) that creates a new Word document through interop.word.dll. I have a Windows Server 2003 with Office XP Professional installed. I've...
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...
2
by: tamaker | last post by:
I have a registration form where a user is able to, upon submission of the form, have their submission entered into a simple database... now Im looking to create a word document on the fly from...
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: 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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.