• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

RTF and Word 2002

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there,
a customer reported a problem concering RTF format of MS Word 2002:
The standard RTFEditorKit is no longer able to read the RTF files
generated by Word 2002, there is a naughty exception commin up ...
So my question: Does anyone of u can give me a hint how to solve the problem
or does anyone know a workaround ?
The only hint I found til now is here:
Java Tech Center
The application worked for years ... Thanx Microsoft !!!
So then - waiting for input ...
Yours Timo
 
Ranch Hand
Posts: 1923
Scala Postgres Database Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you find the differences between Word_old_rtf and Word_new_rtf?
Perhaps you may preformat the new style to the old style, and open it in the old style?
 
Timo Wiedenmann
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
thanks for reply !!
Thats what I'm actually doin' ...
At the moment it looks like the new format contains much more
information (like a .DOC document) like styles, fonts and so on.
There is even user information stored in the new format (How created
the document, how saved it last, etc.).
The problem for the java RTFEditorKit is contained in a section called {\sytlesheet ...}, so I try to wrap the input stream for the RTF parser
and delete this section.
Hope to get my code / example working today.
Have a nice day ...
Timo
 
Timo Wiedenmann
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Okay folks,
I did it on my own
See the workaround at JTC ...
But this is only a workaround, if you want to help getting the bug fixed
go to Bug Parade and vote !!
Well then - have a nice day ...
Timo
 
reply
    Bookmark Topic Watch Topic
  • New Topic