File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes styledoc to html conversion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "styledoc to html conversion" Watch "styledoc to html conversion" New topic
Author

styledoc to html conversion

hita
Greenhorn

Joined: Aug 07, 2001
Posts: 1
hi
i have made one application which reads a styled document and converts it in to html tags. my problem is when using syyleeditorkit.boldaction to make text bold it takes whole line as a bold when converted to html . so my final html format shows whole line bold not the selected bold portion.
hita
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

hita -

Please read the official JavaRanch naming policy and re-register. Your user name needs to consist of a first name, a space, and a last name. First and last names have to be at least one character.

I'm not sure how much we can help you out with your problem without some code... it sounds like you are writing out the HTML bold tags at the wrong time, or in the wrong location in your output string...

Perhaps you could change your program to output whatever portion of the line it has read in as soon as it hits a bold portion, then read the bold portion, output it with bold tags surrounding it, and then continue to read...

-Nate


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: styledoc to html conversion