Generating .DOC Reports from a Linux Server and PHP System

In summary, you can generate PDF files using the php9.bloghi.com website mentioned in the beginning, or you can use the win32com.de website to find a suitable program.
  • #1
182
0
We have a linux server and some win clients.
Our webbased accounting system is soppused to make reports in different formats like .DOC.
The system is written in PHP. How can we generate that format?
 
Computer science news on Phys.org
  • #2
I did a google search to see if there was a program in php that could do the conversion but there are none. Doc is a closed format and unless your willing to put in time to reverse engineer the format then no. PDFs on the other hand can be generated on the fly as well as the Oasis (xml based) format used in Openoffice.

http://www.fpdf.org/

If your not going to sell this software your better off using: pdflib

http://www.pdflib.com/

http://www.pdflib.com/products/pdflib/download/601/PDFlib-6.0.1p1-Linux.tar.gz [Broken]
 
Last edited by a moderator:
  • #3
(I'm not familiar enough with PHP to see if these are directly applicable to you.)

Is .RTF acceptable?
http://php9.bloghi.com/2002/07/23/using-php-for-rich-text-format-rtf-external.html
http://www.phpbuilder.com/annotate/message.php3?id=1011981

http://www.wlug.org.nz/RTF [Broken] says "You can also give an RTF file a ".DOC" extension and then MicrosoftWindows users will be able to transparently open it in MicrosoftWord, blissfully unaware what format the file is actually in."

Here's a start:
http://jakarta.apache.org/poi/hwpf/index.html

The following need a Windows machine. Maybe you could set up a local Windows machine (real or virtual?) that could serve your linux servers with the required files.

http://schmidt.devlib.org/java/libraries-word.html points to:
http://www.java400.de/Javactpe.htm
"Java Bean Word Processing. Freeware. Read and write Word 97 and 2000 files. Needs a driver that runs only under Windows."

Here's something in Python
http://www.win32com.de/index.php?option=com_content&task=view&id=173&Itemid=130
more from
http://www.win32com.de/index.php?option=com_content&task=category§ionid=7&id=86&Itemid=130
 
Last edited by a moderator:

1. What is a .DOC report?

A .DOC report is a file that contains a document created in the Microsoft Word format. It can include text, images, tables, and other elements and is commonly used for creating professional-looking reports, documents, and forms.

2. Can a Linux server generate .DOC reports?

Yes, a Linux server can generate .DOC reports using the PHP system. PHP is a server-side scripting language that can be used to create and manipulate files, including .DOC files, on a server.

3. What are the benefits of generating .DOC reports from a Linux server and PHP system?

Generating .DOC reports from a Linux server and PHP system offers several benefits, such as increased security, cost-effectiveness, and flexibility. Linux servers are known for their robust security features, and using PHP allows for easy customization and automation of report generation.

4. Can .DOC reports be customized using a Linux server and PHP system?

Yes, .DOC reports can be fully customized using a Linux server and PHP system. PHP allows for dynamic data generation and manipulation, so reports can be tailored to specific needs and requirements.

5. Are there any limitations to generating .DOC reports from a Linux server and PHP system?

There are a few limitations to consider when generating .DOC reports from a Linux server and PHP system. The main limitation is that the reports will only be compatible with Microsoft Word and may not display properly in other programs. Additionally, some advanced features of Word may not be supported.

Suggested for: Generating .DOC Reports from a Linux Server and PHP System

Replies
4
Views
1K
Replies
2
Views
2K
Replies
1
Views
1K
Replies
3
Views
953
Replies
26
Views
2K
Replies
24
Views
3K
Replies
3
Views
1K
Replies
18
Views
950
Back
Top