The Artima Developer Community
Sponsored Link

Java Answers Forum
Invoking MicrosoftExcel from java

2 replies on 1 page. Most recent reply: Sep 26, 2003 12:45 AM by Rahul

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
ahsin

Posts: 1
Nickname: ahsin
Registered: Sep, 2003

Invoking MicrosoftExcel from java Posted: Sep 25, 2003 2:09 PM
Reply to this message Reply
Advertisement
Hi,
I would like to open up an excel project from a java code.
please help.Tried runtime.exec("excel.exe") to open the microsoft excel.But that gave an error
calling an excelfilejava.io.IOException: CreateProcess: Excel.exe error=2
Please help
ahsin


mausam

Posts: 243
Nickname: mausam
Registered: Sep, 2003

Re: Invoking MicrosoftExcel from java Posted: Sep 26, 2003 12:45 AM
Reply to this message Reply
code sample plz

Rahul

Posts: 52
Nickname: wildhorse
Registered: Oct, 2002

Re: Invoking MicrosoftExcel from java Posted: Sep 26, 2003 12:45 AM
Reply to this message Reply
Try using absolute file path. I used this and it works fine for me:
Process p = Runtime.getRuntime().exec("C:\\Program Files\\Microsoft Office\\Office\\EXCEL.EXE");
Take care with the slashes. Window systems generally use back-slashes.

Flat View: This topic has 2 replies on 1 page
Topic: interface reference assignment Previous Topic   Next Topic Topic: network question abt ping

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use