Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #6148

Re: Generate Word-readable documents with Java?

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail
From Rhino <no.offline.contact.please@example.com>
Newsgroups comp.lang.java.programmer
Subject Re: Generate Word-readable documents with Java?
Date Wed, 13 Jul 2011 03:56:34 +0000 (UTC)
Organization Your Company
Lines 25
Message-ID <Xns9F20F38FD6313noofflinecontactplea@94.75.214.39> (permalink)
References <Xns9F20C122646D0tenblade@94.75.214.39> <RTF-20110713012911@ram.dialup.fu-berlin.de>
NNTP-Posting-Host MWk8cCl7gTasXNfp1B6zQg.user.speranza.aioe.org
X-Complaints-To abuse@aioe.org
User-Agent Xnews/5.04.25
X-Antivirus-Status Clean
X-Notice Filtered by postfilter v. 0.8.2
X-Antivirus avast! (VPS 110712-1, 2011-07-12), Outbound message
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:6148

Show key headers only | View raw


ram@zedat.fu-berlin.de (Stefan Ram) wrote in
news:RTF-20110713012911@ram.dialup.fu-berlin.de: 

> Ten Blade <ten.blade@tenblade.com> writes:
>>I'd like to generate a moderately complex document (text, graphics,
>>tables, bulleted lists) with Java code that can be read by Microsoft
>>Word users. It's not important to me whether these document is in the
>>traditional 'doc' format or something else like .xml.
> 
>   Untested:
> 
> public class Main
> { public static void main( final java.lang.String[] args )
>   throws java.lang.Throwable
>   { final java.io.File outFile = new java.io.File( "example.rtf" );
>     final java.io.PrintWriter out = 
>     new java.io.PrintWriter( new java.io.FileOutputStream( outFile ),
>     true ); out.println( "{\\rtf1{\\fonttbl{\\f0 Arial;}}\\f0
>     example\\par}" ); out.close(); }
> 

Good point; I could write RTF documents. Thanks!

-- 
Rhino

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Find similar


Thread

Generate Word-readable documents with Java? Ten Blade <ten.blade@tenblade.com> - 2011-07-12 22:59 +0000
  Re: Generate Word-readable documents with Java? lewbloch <lewbloch@gmail.com> - 2011-07-12 16:12 -0700
    Re: Generate Word-readable documents with Java? Ten Blade <ten.blade@tenblade.com> - 2011-07-13 00:53 +0000
  Re: Generate Word-readable documents with Java? Rhino <no.offline.contact.please@example.com> - 2011-07-13 03:56 +0000

csiph-web