|
Comments for: yunus20031124
| Message # 1029479: |
|
Date: 07/15/05 17:57
By: Object OR .COM Subject: Anders Nielsen - RE: A better solution... Excuse!. You can send an example to me related to this email? aaruiz01@hotmail.com Armando Colombia Subject: A better solution... After searching google on a way to generate word documents the first i found was this nice article. Several hours and a headache later i decided that using Word.application through COM was not the solution for several reasons: - winword.exe didn't shut down properly - difficult to make nice layouts, how to make a bulleted list by example This made me look for other solutions, ending up with saving my document template as HTML from within Word, and simply just echoing the variables where needed in the HTML, when done streaming it to the browser with header("Content-Type: application/msword"); header('Content-Disposition: attachment; filename="filename.doc"'); Making the document open up Word on the client without any complaints that the contents really are HTML This is also a good solution for Linux webservers because it doesn't actually require Word on the server like the method with COM does, secondly its very fast, no loading of word application into servers memory etc Hope this saves anyone the trouble of the Word.application COM object :) |
Previous Message | Next Message |
| Comments: | ||
| thank you | Fra Orv | 01/27/09 07:39 |
| RE: Inserting Line Breaks | bobby.tables | 10/28/08 07:55 |
| Word on server vs. mime-type tricks | Steve | 09/18/07 10:00 |
| Fatal error: com class not defined | Hans | 07/08/07 16:31 |
| how to instantiate COM | mienard lumad | 06/01/07 03:51 |
| write word script | Sandr | 05/25/07 17:17 |
| Inserting Line Breaks | Jon | 01/14/06 08:19 |
| Getting Error | swetha | 10/28/05 06:13 |
| RE: Pulling out MS Word document properties | Feierabendbier | 07/25/05 06:39 |
| create word 2000 file | dinanath | 07/22/05 08:01 |
| Anders Nielsen - RE: A better solution... | Object OR .COM | 07/15/05 17:57 |
| A better solution... | Anders Nielsen | 02/20/05 00:37 |
| RE: No Word on Server | Steven Vanderhoydonks | 02/08/05 04:32 |
| ideas on parsing | Dean | 01/26/05 12:16 |
| Pulling out MS Word document properties | Rahul | 01/04/05 19:19 |
| display a word document in html format with p | Deepthi Valmikam | 11/28/04 02:21 |
| generat .doc with tables? | anna | 11/18/04 09:26 |
| RE: Are there other options? | Cristian Muraru | 06/01/04 08:43 |
| RE: Are there other options? | tibim | 03/02/04 15:50 |
| import xhtml | nick | 02/26/04 17:09 |
| why bother? | madis | 01/04/04 10:40 |
| RE: Are there other options? | Mr. Mechano | 12/30/03 04:51 |
| There is a better RTF-DOC-PDF example | Jon Ritchey | 12/29/03 14:15 |
| PDF v. WORD | sep | 12/23/03 16:33 |
| RE: Are there other options? | Khairul Amri Yunus | 12/20/03 03:30 |
| RE: Are there other options? | Yosh | 12/13/03 16:05 |
| RE: Word on Server - Not recommended at all | Alex | 12/11/03 16:03 |
| Not as bad as it sounds.... | andrew taylor | 12/10/03 06:26 |
| Templates in RTF | Jeroen Keppens | 12/09/03 03:42 |
| RE: Are there other options? | Eric Esquibel | 12/08/03 17:42 |
| poor choice.. | Paul | 12/06/03 18:46 |
| PDF a better choice for printing | Drew F | 12/05/03 12:05 |
| example using rtf... | jon roig | 12/05/03 11:59 |
| RE: doc poor choice for printing | nightowl | 12/05/03 06:00 |
| RE: Are there other options? | nightowl | 12/05/03 05:58 |
| No Word on Server | Martin Roesch | 12/04/03 07:38 |
| ex vb programmer? | Joe PHP | 12/03/03 16:28 |
| doc poor choice for printing | johnnyv | 12/02/03 16:31 |
| Are there other options? | Luiz Guilherme | 12/02/03 14:22 |
|
If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly. | ||


