473,503 Members | 1,656 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Launch WinWord(Word) from incorrect directory

ajester
2 New Member
I need WinWord to look like it's being executed from the correct path: C:\Program Files\Microsoft Office\Office12\WinWord.exe when in reality it's being launch from a Java app using the path C:\Program Files\Microsoft Office\Office11\WinWord.exe. A program (Java) from the Internet (so it only knows the configuration it has stored) launches 'C:\Program Files\Microsoft Office\Office11\Winword.exe' and sends it a macro to build a form on the client. Somehow I need to catch it and have it open winword from the correct path. Changing the path in the Java app isn't an option(unless someone is clever enough to trick it to the correct winword). I'm using visual studio 2008 Express C# but can download anything for free.

How do I do this?? Where do I start? I do SQL for a living not C#.

I've tried hardlinks 'fsutil hardlink create' but winword sees the Office11 in the path and launches Office Repair. I've tried copying the files in to an Office11 folder that I created which caused Office to launch repair. noticing a theme

I was thinking something like 'fork' or 'execlp' where Office11\winword(my app) launches Office12\winword and the ?data pipe? is inherited or parameters are passed to this real, M$, Office12\winword and runs the macro in M$ Word.

Thanks in advance for your help!
Alonzo
Aug 7 '09 #1
2 3333
Plater
7,872 Recognized Expert Expert
Does that java program interact with it once its been executed?
If not, it could be as simple as creating your own .NET program and putting it in that directory, then executing winword (like you suggested)

If it interacts with it, well then you might have some trouble.
Aug 11 '09 #2
ajester
2 New Member
I don't believe the Java interacts with it. I don't know how to test that. The Java launches Winword and feeds it data. I don't know how it feeds Winword, named pipe, macro, from the command line, temp file, or maybe something like HTTPs get or put methods.

How do I test/capture/figure out the input method? What class/methods would I use to launch WinWord from .NET?

It's kind of like a mail merge between Access and Word. There are forms in the Java app. It usually knows how to fill in the form, Respondant's name and address, employer's address, etc. The Java app prompts for any fill-in fields that aren't in it's tables if any prompts are needed for the forms like a hearing date or respond by date. Then the user clicks ok and Winword opens with the addresses and dates filled in and the user clicks print and mails the letter.

Thanks for replying. I just about given up on getting a response.
Sep 8 '09 #3

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

Similar topics

17
6275
by: Mike | last post by:
I am trying to write a web page where a person can click on a word document and MS Word is launched instead of the document being displayed in the IE browser. I have been able to launch MS Word but...
2
2335
by: David Zack | last post by:
Hello. I'm currently working on a tool for an intranet that allows a user to launch a Word document template from an HTML page on a corporate portal. I would now like to run a particular macro...
7
3876
by: Zeke | last post by:
I'm using the following code to create word document but the problem is if you go to task manager you'll see a WINWORD.EXE process is running but not the application, here is the code: ...
0
1733
by: Rokas Valantinas | last post by:
Hello, Does anybody know how to launch MS Word application from ASP.NET webservice ? I'm receiving AccessDenied exception. What could be wrong with access rights if ASPNET and internet guest...
2
3846
by: Richard Loupatty | last post by:
I tried to start winword.exe from an aspx (after granting things with dcomcnfg) and i can see winword.exe showing up in the taskmanager, but i don't see the word-application itself. I did set...
3
11705
by: Dean Slindee | last post by:
The code below is being used to launch WinWord.exe from a VB.NET program. Word launches, but displays this error message: "Word has experienced an error trying to open the file. Try these...
2
4501
by: Dean Slindee | last post by:
The code below is being used to launch WinWord.exe from a VB.NET program. Word launches, but displays this error message: "Word has experienced an error trying to open the file. Try these...
1
2908
by: Thomas Beyerlein | last post by:
I am trying to open word with process.start but when it opens word it give me a error that says: Word experienced an error Try suggestions: * check the file permissions * Make sure there is...
0
1988
by: TELO | last post by:
I would like to launch MS Word document via VB.Net application. Basically I want to print letters (using word templates) through VB.NET application. Thanks
0
7198
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
7319
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...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5570
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4998
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3149
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.