Thanks for all replies.Could please tell me when i write a file as RTF, is it possible to set margins for the page and page view as landscape or portrait by default.As my application requires a file to be written with different styles so that user can take a print of it directly and it should of extention .doc probably .rtf is also ok.
Please help in this regard.
Thanks.
-----Original Message-----
From: A mailing list for Java(tm) 2 Platform, Enterprise Edition [SMTP:J2EE-INTEREST@JAVA.SUN.COM] On Behalf Of Tim Wood
Sent: Tuesday, March 29, 2005 12:03 AM
To: J2EE-INTEREST@JAVA.SUN.COM
Subject: Re: write to word along with style
At 08:17 AM 03/28/05, Michael New wrote:
>Srinivasa Sai Chakravarthy V (CTC) wrote:
>>
>>I got this but is it possible to set margins and page view as landscape or portrait etc,,.when we are writing to file.
>>Is it possible to write to a file along with the styles as Bold and italic etc...The file type is word document.So when word is opened it should show text along with the style. Thanks. Chakravarthy
>
>One solution is to write an html document and save it with a .doc extension. This won't help you with landscape, etc, though, as HTML has no concept of that...
Oy. Why don't you just write the file as RTF? Has supported style rendering in M$Word for years (but no macros, a security benefit).
TW
===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff J2EE-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".