SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Cheers - Sam.
Twisters - The new age Java Quiz || My Blog
Rob Spoor wrote:You can't just add the bytes of two files and expect the resulting file to contain the contents of the two files. Most file formats have a lot of extra information about the file inside it. This information needs to be modified in a format specific way, and the contents of both files also need to be merged in a format specific way. Your approach will work for very, very few formats; plain text is one, but most formats are not that simple.
I suggest you take a look at Apache POI, especially the org.apache.poi.hslf package and its "sub" packages.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Rob Spoor wrote:Which probably means that you will need a different library. I even expect that you will have to pay for it, as there aren't many free ones. You might get some results from OpenOffice / JODConverter but I haven't used those.
And welcome to the Ranch of course!
Parth Pateld wrote:But I dont know how to call C# function from a Java class.
Tim Moores wrote:
Parth Pateld wrote:But I dont know how to call C# function from a Java class.
That's what the second article explains, isn't it? After working through it (by which I mean compiling and linking all the involved source codes), do you have a specific question about the process?
Tim Moores wrote:If the source code can't be downloaded by following the "Download source files" link then you should contact the author of that article to get the link fixed.
Besides, isn't all the source code also part of the article?
Don't get me started about those stupid light bulbs. |