Re: [flexcoders] How to create .doc files (Word files) with Flex ?

2008-05-15 Thread Farid SALAH


Le 15 mai 08 à 10:27, Mathieu Fernandez a écrit :


Rick Winscot a écrit :
Then the complexity of your solution just jumped a notch… since  
there is a very big gap getting things in/out of Flex. Let just say  
that you could scaffold in a Word .doc in Flex… what then? You’d  
have to have a web server running locally to read or write anything  
to disk. You might be able to signal a local download of some sorts…  
perhaps the real issue here is practicality. Given the constraints  
that I’m hearing – I think that it is safe to say that the answer to  
your question is a solid no. If you had the liberty to mix in a few  
other technologies… perhaps. AIR is a solid method to read/write  
files but again you still have to contend with the expanse of  
the .doc file format – and again practicality comes into view. It  
would be much more valuable (as a solution goes) to use a format  
that Word can read and is friendly to Flex – like rich text.


OK so if I understand well, it's not possible to create a word file  
without using a server.
Too bad, we gone try to use Java POI and forced the user to be  
connected to create a Word document.


Somebody know about the limitation of Java POI ? I probably need to  
put table, graphics and pictures in Word document. Is it possible  
with POI ?


Hi,

If I were you I'd stick with PDF.
Why would you use a word document except of course if the user will  
use and modify it ?


Anyways, if you use Java, go for pdf:
http://www.lowagie.com/iText/

As for POI we have users who are good with excel so we present them  
the data in Datagrid and all sorts of charting components and the  
excel export sends back the raw data so they can play with it ;^)


Good luck,

Farid





Re: [flexcoders] How to create .doc files (Word files) with Flex ?

2008-05-15 Thread Mathieu Fernandez

Rick Winscot a écrit :
Then the complexity of your solution just jumped a notch... since there 
is a very big gap getting things in/out of Flex. Let just say that you 
could scaffold in a Word .doc in Flex... what then? You'd have to have a 
web server running locally to read or write anything to disk. You might 
be able to signal a local download of some sorts... perhaps the real 
issue here is practicality. Given the constraints that I'm hearing -- I 
think that it is safe to say that the answer to your question is a solid 
no. If you had the liberty to mix in a few other technologies... 
perhaps. AIR is a solid method to read/write files but again you still 
have to contend with the expanse of the .doc file format -- and again 
practicality comes into view. It would be much more valuable (as a 
solution goes) to use a format that Word can read and is friendly to 
Flex -- like rich text.


OK so if I understand well, it's not possible to create a word file 
without using a server.
Too bad, we gone try to use Java POI and forced the user to be connected 
to create a Word document.


Somebody know about the limitation of Java POI ? I probably need to put 
table, graphics and pictures in Word document. Is it possible with POI ?


Re: [flexcoders] How to create .doc files (Word files) with Flex ?

2008-05-14 Thread Derrick Anderson
this site may help as well

http://openxmldeveloper.org/

d.

On Wed, May 14, 2008 at 9:51 AM, Daniel Freiman <[EMAIL PROTECTED]> wrote:

>   Office 2003 has files defined in XML.  (This isn't the default file
> format but it is available).  I don't know if the spec is published but you
> could alway reverse engineer it a little and write directly to that spec.
>
>
> On Wed, May 14, 2008 at 2:36 AM, Anirudh Sasikumar <
> [EMAIL PROTECTED]> wrote:
>
> > If PDF is possible, also take a look at AlivePDF
> > http://alivepdf.bytearray.org/
> >
> > On Wed, May 14, 2008 at 9:19 AM, Rick Winscot <[EMAIL PROTECTED]>
> > wrote:
> > >
> > > If at all possible… if .pdf is an option Mars is worth a look.
> >
> > Cheers,
> > --
> > Anirudh Sasikumar
> > http://anirudhs.chaosnet.org/
> >
> > 
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> > Links
> >
> >
> >
> >
>  
>


Re: [flexcoders] How to create .doc files (Word files) with Flex ?

2008-05-14 Thread Daniel Freiman
Office 2003 has files defined in XML.  (This isn't the default file format
but it is available).  I don't know if the spec is published but you could
alway reverse engineer it a little and write directly to that spec.

On Wed, May 14, 2008 at 2:36 AM, Anirudh Sasikumar <
[EMAIL PROTECTED]> wrote:

> If PDF is possible, also take a look at AlivePDF
> http://alivepdf.bytearray.org/
>
> On Wed, May 14, 2008 at 9:19 AM, Rick Winscot <[EMAIL PROTECTED]>
> wrote:
> >
> > If at all possible… if .pdf is an option Mars is worth a look.
>
> Cheers,
> --
> Anirudh Sasikumar
> http://anirudhs.chaosnet.org/
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


Re: [flexcoders] How to create .doc files (Word files) with Flex ?

2008-05-13 Thread Anirudh Sasikumar
If PDF is possible, also take a look at AlivePDF http://alivepdf.bytearray.org/

On Wed, May 14, 2008 at 9:19 AM, Rick Winscot <[EMAIL PROTECTED]> wrote:
>
> If at all possible… if .pdf is an option Mars is worth a look.

Cheers,
-- 
Anirudh Sasikumar
http://anirudhs.chaosnet.org/



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



RE: [flexcoders] How to create .doc files (Word files) with Flex ?

2008-05-13 Thread Rick Winscot
If at all possible… if .pdf is an option Mars is worth a look.

 

http://labs.adobe.com/technologies/mars/

 

Rick Winscot

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mathieu Fernandez
Sent: Tuesday, May 13, 2008 11:13 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How to create .doc files (Word files) with Flex ?

 

Jim Hayes a écrit : 

How much of a “word” document do you want, if that’s not a totally stupid
question?

I have in the past created an html file, saved it with a .doc file extention
and word seemed quite happy to open and display it (I’m refering to windows,
mac may well be / probably is different.

It probably depends on what word features they actually require, and if your
app needs to read and modify it afterwards (word will probably add all sorts
of stuff to it on a save).


I haven't a precise number of Word document. In fact, I have a datagrid and
the client must be able to choose different lines of the datagrid and
generate a .doc from this line.

 



RE: [flexcoders] How to create .doc files (Word files) with Flex ?

2008-05-13 Thread Rick Winscot
Then the complexity of your solution just jumped a notch… since there is a
very big gap getting things in/out of Flex. Let just say that you could
scaffold in a Word .doc in Flex… what then? You’d have to have a web server
running locally to read or write anything to disk. You might be able to
signal a local download of some sorts… perhaps the real issue here is
practicality. Given the constraints that I’m hearing – I think that it is
safe to say that the answer to your question is a solid no. If you had the
liberty to mix in a few other technologies… perhaps. AIR is a solid method
to read/write files but again you still have to contend with the expanse of
the .doc file format – and again practicality comes into view. It would be
much more valuable (as a solution goes) to use a format that Word can read
and is friendly to Flex – like rich text.

 

Rick Winscot

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mathieu Fernandez
Sent: Tuesday, May 13, 2008 10:50 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How to create .doc files (Word files) with Flex ?

 

Rick Winscot a écrit :

Hmm… Microsoft can barely do that! Seriously though – a native .doc file?
Directly – no. If you have a server with a product like Aspose Word
(www.aspose.com) installed – maybe. The straight forward scenario is to
install components or libraries on the server (since Flex would have a
difficult time loading/saving anything or interfacing with anything client
side).

Sorry but my last message wasn't send in totality ?!?!?

For my problem I can't use your solution because clients must be able to
generate a Word document even when they are disconnect from the server. 
For example if it's a Desktop AIR application and they lose th econnection,
they must be able to create a word document.

thank you for helping me

 



RE: [flexcoders] How to create .doc files (Word files) with Flex ?

2008-05-13 Thread Kevin Aebig
Why would you be surprised? The Word format is bloated and extremely feature
rich. Every time you wonder why a specific feature wasn’t added to the Flash
Player, remember how big it is…

 

You need to be more specific in what you’re trying to accomplish if you want
specific help. What features do you need from Word? Would a PDF be as
accommodating? Could you potentially use a server side service to create the
document and than download it?

 

Cheers,

 

!k

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mathieu Fernandez
Sent: Tuesday, May 13, 2008 10:06 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How to create .doc files (Word files) with Flex ?

 

zoltan a écrit : 

If you need this functionality only for windows and you are using AIR then
this may help you http://aperture. <http://aperture.fluorinefx.com/>
fluorinefx.com/

As it does not provide currently any word specific api one option would be
to save an xml file with the content then run a vbscript that converts it to
a doc file (you would use the aperture framework to launch your script with
cscript.exe)

Another option would be towrite your own c++ library to do that and
invoke it through the framework (but I guess this is out of discussion)

 

Zoli


I need the functionality for Windows, Mac and Unix, this is the difficulty,
otherwise I was using OWC.
Java POI seems to be the most interesting but it don't allow us to make a
lot of things with Word format (the management of Excel seems to be better).

I'm really suprised, Flex (ActionScript) doesn't allow us to write this kind
of file...

 



Re: [flexcoders] How to create .doc files (Word files) with Flex ?

2008-05-13 Thread Mathieu Fernandez

zoltan a écrit :

If you need this functionality only for windows and you are using 
AIR then this may help you http://aperture.fluorinefx.com/ 

As it does not provide currently any word specific api one option would 
be to save an xml file with the content then run a vbscript that 
converts it to a doc file (you would use the aperture framework to 
launch your script with cscript.exe)
Another option would be towrite your own c++ library to do that and 
invoke it through the framework (but I guess this is out of discussion)


Zoli

I need the functionality for Windows, Mac and Unix, this is the 
difficulty, otherwise I was using OWC.
Java POI seems to be the most interesting but it don't allow us to make 
a lot of things with Word format (the management of Excel seems to be 
better).


I'm really suprised, Flex (ActionScript) doesn't allow us to write this 
kind of file...


RE: [flexcoders] How to create .doc files (Word files) with Flex ?

2008-05-13 Thread zoltan
If you need this functionality only for windows and you are using AIR then
this may help you http://aperture.fluorinefx.com/
As it does not provide currently any word specific api one option would be
to save an xml file with the content then run a vbscript that converts it to
a doc file (you would use the aperture framework to launch your script with
cscript.exe)
Another option would be towrite your own c++ library to do that and
invoke it through the framework (but I guess this is out of discussion)
 
Zoli

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mathieu Fernandez
Sent: Tuesday, May 13, 2008 5:50 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How to create .doc files (Word files) with Flex ?



Rick Winscot a écrit :



Hmm… Microsoft can barely do that! Seriously though – a native .doc file?
Directly – no. If you have a server with a product like Aspose Word
(www.aspose.com) installed – maybe. The straight forward scenario is to
install components or libraries on the server (since Flex would have a
difficult time loading/saving anything or interfacing with anything client
side).

Sorry but my last message wasn't send in totality ?!?!?

For my problem I can't use your solution because clients must be able to
generate a Word document even when they are disconnect from the server. 
For example if it's a Desktop AIR application and they lose th econnection,
they must be able to create a word document.

thank you for helping me


 


Re: [flexcoders] How to create .doc files (Word files) with Flex ?

2008-05-13 Thread Mathieu Fernandez

Jim Hayes a écrit :

How much of a "word" document do you want, if that's not a totally 
stupid question?


I have in the past created an html file, saved it with a .doc file 
extention and word seemed quite happy to open and display it (I'm 
refering to windows, mac may well be / probably is different.


It probably depends on what word features they actually require, and if 
your app needs to read and modify it afterwards (word will probably add 
all sorts of stuff to it on a save).



I haven't a precise number of Word document. In fact, I have a datagrid 
and the client must be able to choose different lines of the datagrid 
and generate a .doc from this line.




Re: [flexcoders] How to create .doc files (Word files) with Flex ?

2008-05-13 Thread Mathieu Fernandez
Tom Chiverton a écrit :
> ExternalInterface, apparently. According to the list archives and Google.
> Never done it myself.
> Remember AIR isn't 'meant' to be able to call out to the O/S, so any solution 
> may or may not be stable, and of course you now have to ship a JRE and 
> some .jar files with your AIR application...
>   
I'm under the impression this is a real brain-teaser :/
> Would generating (say) HTML files (that Word can open) be an alternative, as 
> you can just write them with File APIs ?
I can't do this, I must have doc files ...





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



RE: [flexcoders] How to create .doc files (Word files) with Flex ?

2008-05-13 Thread Jim Hayes
How much of a "word" document do you want, if that's not a totally stupid 
question?
I have in the past created an html file, saved it with a .doc file extention 
and word seemed quite happy to open and display it (I'm refering to windows, 
mac may well be / probably is different.
It probably depends on what word features they actually require, and if your 
app needs to read and modify it afterwards (word will probably add all sorts of 
stuff to it on a save).
 
 
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mathieu 
Fernandez
Sent: 13 May 2008 15:50
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How to create .doc files (Word files) with Flex ?
 
Rick Winscot a écrit :
Hmm... Microsoft can barely do that! Seriously though - a native .doc 
file? Directly - no. If you have a server with a product like Aspose Word 
(www.aspose.com) installed - maybe. The straight forward scenario is to install 
components or libraries on the server (since Flex would have a difficult time 
loading/saving anything or interfacing with anything client side).
Sorry but my last message wasn't send in totality ?!?!?

For my problem I can't use your solution because clients must be able to 
generate a Word document even when they are disconnect from the server. 
For example if it's a Desktop AIR application and they lose th econnection, 
they must be able to create a word document.

thank you for helping me
 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

Re: [flexcoders] How to create .doc files (Word files) with Flex ?

2008-05-13 Thread Tom Chiverton
On Tuesday 13 May 2008, Mathieu Fernandez wrote:
> How can I connect Java and Flex ?

ExternalInterface, apparently. According to the list archives and Google.
Never done it myself.
Remember AIR isn't 'meant' to be able to call out to the O/S, so any solution 
may or may not be stable, and of course you now have to ship a JRE and 
some .jar files with your AIR application...

Would generating (say) HTML files (that Word can open) be an alternative, as 
you can just write them with File APIs ?

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [flexcoders] How to create .doc files (Word files) with Flex ?

2008-05-13 Thread Mathieu Fernandez

Rick Winscot a écrit :


Hmm... Microsoft can barely do that! Seriously though -- a native .doc 
file? Directly -- no. If you have a server with a product like Aspose 
Word (www.aspose.com ) installed -- maybe. The 
straight forward scenario is to install components or libraries on the 
server (since Flex would have a difficult time loading/saving anything 
or interfacing with anything client side).



Sorry but my last message wasn't send in totality ?!?!?

For my problem I can't use your solution because clients must be able to 
generate a Word document even when they are disconnect from the server.
For example if it's a Desktop AIR application and they lose th 
econnection, they must be able to create a word document.


thank you for helping me


Re: [flexcoders] How to create .doc files (Word files) with Flex ?

2008-05-13 Thread Mathieu Fernandez

Tom Chiverton a écrit :

You use the POI Java project via ExternalInterface...

Could you be more precise ?
I can use the API "Java POI" but how ?
How can I connect Java and Flex ?


Rick Winscott a écrit :
Hmm... Microsoft can barely do that! Seriously though -- a native .doc 
file? Directly -- no. If you have a server with a product like Aspose 
Word (www.aspose.com ) installed -- maybe. The 
straight forward scenario is to install components or libraries on the 
server (since Flex would have a difficult time loading/saving anything 
or interfacing with anything client side).


I can't do this because the client must be able to create a Word 
document when he is disconnect (using a AIR Desktop application for 
example) and if he need a server, it's impossible.


Thanks you all for replying.



Re: [flexcoders] How to create .doc files (Word files) with Flex ?

2008-05-13 Thread Tom Chiverton
On Tuesday 13 May 2008, Mathieu Fernandez wrote:
> My question is very easy : how can Icreate .doc file using Flex 3 ?
> Is there any library ? component ? module that I can use to ?

You use the POI Java project via ExternalInterface...

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



RE: [flexcoders] How to create .doc files (Word files) with Flex ?

2008-05-13 Thread Rick Winscot
Hmm. Microsoft can barely do that! Seriously though - a native .doc file?
Directly - no. If you have a server with a product like Aspose Word
(www.aspose.com) installed - maybe. The straight forward scenario is to
install components or libraries on the server (since Flex would have a
difficult time loading/saving anything or interfacing with anything client
side). 

 

Rick Winscot

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mathieu Fernandez
Sent: Tuesday, May 13, 2008 8:15 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to create .doc files (Word files) with Flex ?

 

Hi everybody,

My question is very easy : how can Icreate .doc file using Flex 3 ?
Is there any library ? component ? module that I can use to ?

Thank you in advance.