Hey i got the solution for download as  below.

FileReference  fileReference = new FileReference();
fileReference.save(test.text,"xxxx.doc");

By using the file reference we can download directly but it works with Flash
Player 10 only.

but the html format is not getting.i am getting the data in the word as

<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="main" SIZE="11"
COLOR="#333333" LETTERSPACING="0" KERNING="0">Dear
xxx</FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT
FACE="main" SIZE="11" COLOR="#333333" LETTERSPACING="0"
KERNING="0"></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P
ALIGN="LEFT"><FONT FACE="main" SIZE="11" COLOR="#333333" LETTERSPACING="0"
KERNING="0">Welcome to the company.</FONT></P></TEXTFORMAT><TEXTFORMAT
LEADING="2"><P ALIGN="LEFT"><FONT FACE="main" SIZE="11" COLOR="#333333"
LETTERSPACING="0" KERNING="0"></FONT></P></TEXTFORMAT><TEXTFORMAT
LEADING="2"><P ALIGN="LEFT"><FONT FACE="main" SIZE="11" COLOR="#333333"
LETTERSPACING="0" KERNING="0">yours,</FONT></P></TEXTFORMAT><TEXTFORMAT
LEADING="2"><P ALIGN="LEFT"><FONT FACE="main" SIZE="11" COLOR="#333333"
LETTERSPACING="0" KERNING="0">yyy.</FONT></P></TEXTFORMAT>

How can i get the correct view of text in the word document.

Thanks in advance,

surendra.




On Tue, Nov 10, 2009 at 5:51 PM, surendra
<[email protected]>wrote:

>
> Hi,
>
> I have a text as follows in text field.
>
> Dear XXXXXX,
>
> Welcome to the company.
>
> yours,
> YYYYYY.
>
> i want to download this to word document as in this format with
> spaces.
> Can u guys guide me regarding this.
>
> Thanks in advance,
> surendra.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to