Is there have any simple coding , that can open the File (doc,txt) using it own application such as Ms Word...
-thank...
Have Any Java API can open file directly using code?Open File
Page 1 of 1
11 Replies - 2437 Views - Last Post: 19 February 2008 - 12:52 AM
#1
Have Any Java API can open file directly using code?
Posted 29 January 2008 - 12:46 AM
Replies To: Have Any Java API can open file directly using code?
#3
Re: Have Any Java API can open file directly using code?
Posted 29 January 2008 - 07:39 AM
Opening any document with formatting is more difficult. If you open a .doc file with notepad you will see a whole bunch of formatting instructions, and the actual text of your document will virtually unreadable.
#4
Re: Have Any Java API can open file directly using code?
Posted 30 January 2008 - 04:31 AM
I think you all misunderstood my Question.
When the user click on the File example file.doc.
The File.doc will open using Ms Word application...
Then the file is in the Ms Word application...
Is there have such coding?
-fsloke
When the user click on the File example file.doc.
The File.doc will open using Ms Word application...
Then the file is in the Ms Word application...
Is there have such coding?
-fsloke
#5
Re: Have Any Java API can open file directly using code?
Posted 30 January 2008 - 07:16 AM
Try looking at the Runtime.exec() command.
#6
Re: Have Any Java API can open file directly using code?
Posted 04 February 2008 - 09:56 PM
This command is run in terminal....
This sure can be done if we run it in terminal
But have any alternative?
Thank
This sure can be done if we run it in terminal
But have any alternative?
Thank
#7
Re: Have Any Java API can open file directly using code?
Posted 04 February 2008 - 10:53 PM
what?
#8
Re: Have Any Java API can open file directly using code?
Posted 04 February 2008 - 10:57 PM
fsloke, take your time and try to explain the question a little better.
#9
Re: Have Any Java API can open file directly using code?
Posted 05 February 2008 - 12:47 PM
I think Post #4 sounds like file associations.
#10
Re: Have Any Java API can open file directly using code?
Posted 17 February 2008 - 12:17 AM
You can open txt file and do read and write on a txt file.
We can output to JTextArea byte by byte using input output file.
My Question is How to do output and input file on a complex application such Ms Word, and PDF file?
My concern is open for view only....
We can output to JTextArea byte by byte using input output file.
My Question is How to do output and input file on a complex application such Ms Word, and PDF file?
My concern is open for view only....
#11
Re: Have Any Java API can open file directly using code?
Posted 17 February 2008 - 07:45 AM
You have to have some way of interpreting the data. .doc, .pdf, and the like are pretty much all text files, but they contain special formatting instructions. You can open them with notepad if you want to see what they look like raw, but I don't know any more than that.
#12
Re: Have Any Java API can open file directly using code?
Posted 19 February 2008 - 12:52 AM
I have done some work for you. Google was my starting point.
various pdf libraries
IText pdf library example
Use the above links and explore the internet for MS Word format.
various pdf libraries
IText pdf library example
Use the above links and explore the internet for MS Word format.
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote






|