Home > Back-end >  There was a pop-up window, use Jacob word document operation cause the program card to death
There was a pop-up window, use Jacob word document operation cause the program card to death

Time:12-09

In the web project using the Jacob word document some operations,
 
Try {
ComThread. InitMTA ();
//do something
} the catch (Exception e) {
ComThread. Release ();
}

But for some wrong file, read when a popup window

Contribute to project directly stuck in this code, remote to the server must turn off the pop-ups,
Do you have any good way to solve the problem of the pop-up window to confirm,

CodePudding user response:

The relevant statement there is no corresponding closing statement

CodePudding user response:

Latest wants to file path for WINWORD. EXE process command line, at the end of close to success and defeat the ruthless,

Successfully open the word will display path, in the unity of the popup window is/Automation - Embedding

CodePudding user response:

feel your job again

CodePudding user response:

Can try to change a read word's components, such as poi, can refer to http://blog.csdn.net/tuzongxun/article/details/51992704

CodePudding user response:

Add that the jammed the code for the operation of the opened the word
 
Dispatch doc=Dispatch. The call (the documents, "Open", fileUrl). ToDispatch ();

Java code to run when they open the word here because a confirmation popup window on the server, lead to legal code certificate died here,
Want to Jacob have access to the process ID of the window, then kill WINWORD after timeout. EXE process,
The main question now is how to get to the corresponding WINWORD. EXE process,

CodePudding user response:

The building Lord, please the problem solved? Project is now facing the same problem, the implementation of open the word after the code will pop up a dialog, prompt an error is detected in the file, but the word "can make the following repair to open the file... "

CodePudding user response:

We also met this problem, is originally wanted to kill off by means of taskkill process, but it seems to be also not line

CodePudding user response:

Predecessors, and how to solve?
  • Related