PDA

View Full Version : Flash to doc


tarjinder80
01-05-2009, 10:31 AM
Hi All,

I am making BusinessCard Designer Aplication in Flex2. I am giving pdf output.
Now my client wants output in ms-word format. Can it possible to generate doc file from flex.

Please suggest me some other ways if it is not possible with Flex. Like i can write a xml file and convert the file to doc file using some other third party tool.

The client wants that the output should be in doc format and that file should be editable means all the elements in the file should be editable. So that he can layer change the content in the file as per his requirement.

Please help.

Regards

wvxvw
01-05-2009, 11:23 AM
I am not sure if DOC is an open format, meaning, I can't tell if you will be able to find the file format specifications, but, as long as there's Sun's open office, I believe that some general info on DOC files should be available... Though, you'll have to write the parser on your own.
So, what you'll need to do:
- find format's specs.
- write a parser form the format you already have to DOC.
- choose the way you want to save your business card: either you send it to the server and ask the web site visitor to download it, or, if you're going to write for FP10, then there's an option FileReference.save().

Peter Cowling
01-06-2009, 06:38 PM
Given that we are talking about a business card, I presume a fair bit of what you want to produce will actually be an image. This will not be editable as a doc file, in any meaningful way because Word does not have the required tools - AFAIK.

Per the text element, I (for what its worth) second WVXVW's thoughts on approach. But I would also add this: the doc file format is extremely difficult to work with. I would try to find pre-existing open source (i.e. well maintained) parser, and get my text into that from wherever it is - presumably a database somewhere - even if the parser is in a language you do not use, it going to be a better solution than trying to roll your own IMO.