Re: [PHP] XML to MS Word
Manuel Lemos wrote... I'd say RTF is a format you're going to be able to come to grips with quicker than .doc -- just take a look at the source of a word doc -- it's pretty obscure!!! And proprietary, and soon to be obsolete. But Office 11 files will be XML files. RTF is not a closed format. (I was talking about Office's native .doc format, not the .rtf file format.) -- Charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] XML to MS Word
I'd say RTF is a format you're going to be able to come to grips with quicker than .doc -- just take a look at the source of a word doc -- it's pretty obscure!!! Justin on 31/10/02 1:01 PM, Maxim Maletsky ([EMAIL PROTECTED]) wrote: Guys, The other day, one of my clients asked me this very tricky question: Can we also use that XML data for making MS Word (.doc) files? Our system is designed to produce XML output independently to then later transform it into HTML with PHP/XSLT and PDF with FOP. Now, the client also wants MS Word. I doubted he could, but my intuition suggested me to research on it. Without any luck so far. Does anyone know if there is any possibility doing it? I looked on web but did not really find anything. So, questions are: 1. How doable is it creating a MS Word file from XML data being based on Linux? 2. Can XSL do that somehow combined with somewhat? 3. Any relevant experiences and case studies? Anyone? 4. Articles? Web resources? Discussions? 5. A wild guess: can simple XSL be outputted with MS Word specific output headers/meta tags to then let MS Office do the rest? (client-based?). I found something about Smart Tags but got soon compatibility doubts. Thanks, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] XML to MS Word
I'd go with RTF or PDF. I know there is a way to do PDF from inside of PHP. That's the best you're going to get I think. Even AbiWord and kword have a difficult time with .doc files, whether reading or writing.(I don't think kword writes, been away from the word processor for awhile, w). Hope this helps. -bahwi Maxim Maletsky wrote: So, questions are: 1. How doable is it creating a MS Word file from XML data being based on Linux? 2. Can XSL do that somehow combined with somewhat? 3. Any relevant experiences and case studies? Anyone? 4. Articles? Web resources? Discussions? 5. A wild guess: can simple XSL be outputted with MS Word specific output headers/meta tags to then let MS Office do the rest? (client-based?). I found something about Smart Tags but got soon compatibility doubts. Thanks, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] XML to MS Word
You are right about it - RTF is doable, I heard. But, I still have to answer about the MS Word thingie. Isn't there any tool to convert from, say, PDF to Word? Or like headers tricky? Thanks, Justin. --- Maxim Maletsky [EMAIL PROTECTED] www.PHPBeginner.com // PHP for Beginners www.maxim.cx // my Home // my Wish List: ( Get me something! ) http://www.amazon.com/exec/obidos/registry/2IXE7SMI5EDI3 On Thu, 31 Oct 2002 14:07:59 +1000 Justin French [EMAIL PROTECTED] wrote: I'd say RTF is a format you're going to be able to come to grips with quicker than .doc -- just take a look at the source of a word doc -- it's pretty obscure!!! Justin on 31/10/02 1:01 PM, Maxim Maletsky ([EMAIL PROTECTED]) wrote: Guys, The other day, one of my clients asked me this very tricky question: Can we also use that XML data for making MS Word (.doc) files? Our system is designed to produce XML output independently to then later transform it into HTML with PHP/XSLT and PDF with FOP. Now, the client also wants MS Word. I doubted he could, but my intuition suggested me to research on it. Without any luck so far. Does anyone know if there is any possibility doing it? I looked on web but did not really find anything. So, questions are: 1. How doable is it creating a MS Word file from XML data being based on Linux? 2. Can XSL do that somehow combined with somewhat? 3. Any relevant experiences and case studies? Anyone? 4. Articles? Web resources? Discussions? 5. A wild guess: can simple XSL be outputted with MS Word specific output headers/meta tags to then let MS Office do the rest? (client-based?). I found something about Smart Tags but got soon compatibility doubts. Thanks, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] XML to MS Word
On Wed, 30 Oct 2002 21:16:14 -0600 incoming [EMAIL PROTECTED] wrote: I'd go with RTF or PDF. I know there is a way to do PDF from inside of PHP. That's the best you're going to get I think. PDF are done with FOP and they work perfectly well. Even AbiWord and kword have a difficult time with .doc files, whether reading or writing.(I don't think kword writes, been away from the word processor for awhile, w). This is why I was guessing this: Linux desktop application have this difficulty for the reason they are Open Sources and have nothing MS inside. Now, whoever would want a word file from our server would arrive to there with MS Office installed locally. Would there be a way to count on it and output some XML/XSLT with MS Office specific headers so the MS Word rendering is being done on client? This would be the killer. Am I dreaming? -- Maxim Maletsky [EMAIL PROTECTED] Hope this helps. -bahwi Maxim Maletsky wrote: So, questions are: 1. How doable is it creating a MS Word file from XML data being based on Linux? 2. Can XSL do that somehow combined with somewhat? 3. Any relevant experiences and case studies? Anyone? 4. Articles? Web resources? Discussions? 5. A wild guess: can simple XSL be outputted with MS Word specific output headers/meta tags to then let MS Office do the rest? (client-based?). I found something about Smart Tags but got soon compatibility doubts. Thanks, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] XML to MS Word
You are right about it - RTF is doable, I heard. But, I still have to answer about the MS Word thingie. Isn't there any tool to convert from, say, PDF to Word? Or like headers tricky? I use this function to send a Word header instead of an HTML header. You can then send just regular HTML and the user can choose to open or save the document ## # # creates headers to send ms word file # ## function com_wordheader($filename = download) { //ms word headers header(Content-Type: application/vnd.ms-word; name='word'); header(Content-Disposition: attachment; filename= . $filename . .doc); } ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] XML to MS Word
Justin French wrote... I'd say RTF is a format you're going to be able to come to grips with quicker than .doc -- just take a look at the source of a word doc -- it's pretty obscure!!! And proprietary, and soon to be obsolete. But Office 11 files will be XML files. -- Charles Wiltgen Well, once again my friend, we find that science is a two-headed beast. One head is nice, it gives us aspirin and other modern conveniences... but the other head of science is bad! Oh beware the other head of science...it bites! -- The Tick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] XML to MS Word
Hello, On 10/31/2002 04:38 AM, Charles Wiltgen wrote: Justin French wrote... I'd say RTF is a format you're going to be able to come to grips with quicker than .doc -- just take a look at the source of a word doc -- it's pretty obscure!!! And proprietary, and soon to be obsolete. But Office 11 files will be XML files. RTF is not a closed format. Just dig in the Internet and you will find the specs. OTOH, Office 11 XML will not be understood by any of the previous Word version, if anything else for a while now. -- Regards, Manuel Lemos -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php