D
David Thielen
Hi;
What we want to do is to have our own objects in Word where we determine the
size of them (they will always be rectangular) and draw them. We will use our
AddIn to insert/edit/delete these objects at the caret location.
These objects need to stay in the flow of the document. So if we have "hi
<<object>> there" and we insert 3 pages of text above that line, all of "hi
<<object>> there" gets moved down 3 pages.
The object needs to have data stored at each location because that data
tells us what that particular object is.
A good way to think of it is each object holds a number of 0...5 and that
number maps to an icon. When the user in the AddIn sets the number, we then
render that icon. (What we are doing is a bit more complicated.)
So question 1 is - what is the best way to do this? I assume ActiveX but if
there is a better way, I am happy to hear it.
For whatever approach these are the questions I have come up with so far:
2) How do I have my AddIn (which is in C#) create/edit/delete the objects?
3) How do I tell Word where the ActiveX dll is and how does it know to use it?
4) If someone does not have the ActiveX.dll on their system, how do I have
something reasonable rendered for the object?
5) Our back-end engine that parses the Word document is a java program. How
do I read the embedded ActiveX object data to get the data that identifies
what the object is?
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
What we want to do is to have our own objects in Word where we determine the
size of them (they will always be rectangular) and draw them. We will use our
AddIn to insert/edit/delete these objects at the caret location.
These objects need to stay in the flow of the document. So if we have "hi
<<object>> there" and we insert 3 pages of text above that line, all of "hi
<<object>> there" gets moved down 3 pages.
The object needs to have data stored at each location because that data
tells us what that particular object is.
A good way to think of it is each object holds a number of 0...5 and that
number maps to an icon. When the user in the AddIn sets the number, we then
render that icon. (What we are doing is a bit more complicated.)
So question 1 is - what is the best way to do this? I assume ActiveX but if
there is a better way, I am happy to hear it.
For whatever approach these are the questions I have come up with so far:
2) How do I have my AddIn (which is in C#) create/edit/delete the objects?
3) How do I tell Word where the ActiveX dll is and how does it know to use it?
4) If someone does not have the ActiveX.dll on their system, how do I have
something reasonable rendered for the object?
5) Our back-end engine that parses the Word document is a java program. How
do I read the embedded ActiveX object data to get the data that identifies
what the object is?
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm