R
Roland Leisch
Hello!
I have quite a strange problem: I try to automate Word / Excel /
Powerpoint using Java and a Java-COM Bridge. The applicationes are
embedded into a OLE container. My problem is the following: There is now
way for me to identify an open document since there are problems with
naming:
I wrote an application which reads the contents of Documents,
Presentations and Workbooks collection and prints them out:
WORD:
-----
(the document in OLE container (actually the name of the document is
c:\test.doc)
Fullname ::: Dokument in com.jniwrapper.win32.automation.OleContainer
Name ::: Dokument in com.jniwrapper.win32.automation.OleContainer
(the new created document (manually))
Fullname ::: Dokument1
Name ::: Dokument1
(an existing document (opened manually))
Fullname ::: c:\reporting\Reporting.doc
Name ::: Reporting V2.doc
the same with POWERPOINT and EXCEL
----------------------------------
(an existing document (opened manually))
Fullname ::: C:\PATROL.ppt
Name ::: PATROL.ppt
(the new created document (manually))
Fullname ::: Präsentation2
Name ::: Präsentation2
(the document in OLE container (actually the name of the document is
c:\test.ppt)
Fullname ::: Präsentation incom.jniwrapper.win32.automation.OleContainer
Name ::: Testtitle
(an existing document (opened manually))
Fullname ::: C:\cat.xls
Name ::: catxls
(the document in OLE container (actually the name of the document is
c:\test.xls)
Fullname ::: Mappe4
Name ::: Mappe4
If I open more instances of my application containing an ole container
there are more documents with the same name and I cant find out the
filename of the opened files.
Can anyone help?
I have quite a strange problem: I try to automate Word / Excel /
Powerpoint using Java and a Java-COM Bridge. The applicationes are
embedded into a OLE container. My problem is the following: There is now
way for me to identify an open document since there are problems with
naming:
I wrote an application which reads the contents of Documents,
Presentations and Workbooks collection and prints them out:
WORD:
-----
(the document in OLE container (actually the name of the document is
c:\test.doc)
Fullname ::: Dokument in com.jniwrapper.win32.automation.OleContainer
Name ::: Dokument in com.jniwrapper.win32.automation.OleContainer
(the new created document (manually))
Fullname ::: Dokument1
Name ::: Dokument1
(an existing document (opened manually))
Fullname ::: c:\reporting\Reporting.doc
Name ::: Reporting V2.doc
the same with POWERPOINT and EXCEL
----------------------------------
(an existing document (opened manually))
Fullname ::: C:\PATROL.ppt
Name ::: PATROL.ppt
(the new created document (manually))
Fullname ::: Präsentation2
Name ::: Präsentation2
(the document in OLE container (actually the name of the document is
c:\test.ppt)
Fullname ::: Präsentation incom.jniwrapper.win32.automation.OleContainer
Name ::: Testtitle
(an existing document (opened manually))
Fullname ::: C:\cat.xls
Name ::: catxls
(the document in OLE container (actually the name of the document is
c:\test.xls)
Fullname ::: Mappe4
Name ::: Mappe4
If I open more instances of my application containing an ole container
there are more documents with the same name and I cant find out the
filename of the opened files.
Can anyone help?