|
Prev: flash slider in director
Next: job opportunity
From: frashjiveturkey on 19 Jun 2008 05:41 Hi, I have a projector which generates a report for the user at the end of a Q&A section. Currently the report is saved as plain text. The client would like to add some text formatting (in the form of bold and coloured text) and would also like the file to open in Word when double clicked. Does anyone know of a way to save the text of a cast member as a Word document? Thanks, Deryck
From: Andrew Morton on 19 Jun 2008 06:01 frashjiveturkey wrote: > Does anyone know of a way to save the text of a cast member as a Word > document? Use or rtf or html formatting and give it a .doc extension - Word knows what to do with it. You can get the rtf or html of a text member using member("whatever").rtf or member("whatever").html - put it into a variable and save that with an xtra like fileIO, propSave or buddyFile. I don't have the latest Director, so I don't know what the implications of Unicode will be. Andrew
From: Dave C on 19 Jun 2008 07:35 Andrew's suggestion is the way to go to meet your requirement "to add some text formatting (in the form of bold and coloured text) and would also like the file to open in Word when double clicked." If your requirement is "to save the text of a cast member as a Word document" then you will need an Xtra such as this one. http://www.mediamacros.net/customer/product.php?productid=4
From: yupieyi on 20 Jun 2008 05:15 Andrew ur tip worked for me. that's all i wanted to accomplish. thanks.
From: frashjiveturkey on 20 Jun 2008 09:32 Thanks Andrew, works a treat. At the moment it really just needs to contain some limited formatting and open by default in Word (or whatever you've got set to open .docs with). So getting the rtf or html and adding .doc as the extension works great. Thanks for the heads up on the Xtra Dave, might come in handy in the future as there's a good chance future versions will be needed with more features.
|
Pages: 1 Prev: flash slider in director Next: job opportunity |