473,386 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to open a .doc in Netbeans using JAVA

anoble1
245 128KB
Hello,

I am having some trouble finding code to open a word document using java. At the top of my program I am making there is a Help button, then an about button. I am trying to make it to when I click on About it will open a word document on the network drive.

I know in VB I use this:

Expand|Select|Wrap|Line Numbers
  1. oApp.Documents.Open FileName:="S:\Workgroups\APC Power Delivery-Contract Services\Herbicide and Tree Trimming Database\User Manual\HATT User Manual.doc"
Jul 8 '11 #1
2 3630
Oralloy
988 Expert 512MB
anoble1,

What are you trying to do with the file?

Do you need access to the text?

Or, do you simply want the bytes?

In other words, what are you doing with the file data?

Cheers,
Oralloy
Jul 8 '11 #2
anoble1
245 128KB
Just want the file to come up in Microsoft Word when I click a button. But, yes I do want MS Word to come up con the screen with the correct document showing.
Jul 8 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Mark Richards | last post by:
An applet on one of my pages uses a big picture as background. I want to load it before the applet and the rest of the html source. By doing this I want to avoid that the pane of the applet is...
3
by: Srinu | last post by:
How do i hide status bar in firefox using java script only Plz help me iam new to this group.
8
by: dbaplusplus | last post by:
I worked on web development using java script many many years, so I am now a newbie to javascript. I have a single html page, which is generated dynamically using some programming language. Web...
0
by: Ginoboy | last post by:
Hello there I have a problem in executing mysql using java netbeans. all i want is to execute a batch file. this is my code: "try { ...
2
by: SelvaSA | last post by:
Hi All, I am newbie to this forum. I have tried to open excel file using java, but problem is how read contents of excel cells. I have tried same in VB, but i don't know how to do it using...
12
ak1dnar
by: ak1dnar | last post by:
Hi, I need to build up a web service using java. I am using, Netbeans 5.5.1 JDK 1.5 is there any thing else that i should plug in to my project environment apart from this to build up a web...
3
hidash
by: hidash | last post by:
hi all, i have a project to open some applications using java. i am creating web page using jsp from the web page i have to open a file example word file with the msword application by clicking a...
2
by: orangemonkey | last post by:
Hey. Naive question, how do you open and edit java files? I use NetBeans IDE 6.01. Let's say I save a hello world program, I try to double click it, use the open with Netbeans, notepad, anything...
8
by: vatz | last post by:
I am using Java to open a window application. i need to open it in a specified size. Please let me know how to do this...Thanks in advance... - Vatz
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.