D
Daniel Hams
Dear all,
Here are the details about what we would like to do with Infopath, what we
have attempted, and what (we feel) we are currently missing - any help from
Microsoft at all would be extremely smashing and happy warmy feely.
What we are trying to do:
Use Infopath as an application "shell" - have Infopath provide much of the
application data entry functionality, but have custom File->New, File->Edit,
File->Close and remove existing entries. We also need to be able to trap the
user clicking the "Close Window" (upper right) control to prompt the user if
they have unsaved changes.
The custom toolbar / menu entries should be tied into custom C# code with
custom winforms.
N.B. The example code we are using to modify existing toolbars / menu items
can be found here:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;867442
* Plugin functionality
We would _really_ like to have access to similar functionality to the COM
add-ins in other office applications. We have experiemented with the
following functionality inside Infopath Forms to try and achieve this:
_startup and _shutdown methods
Unfortunately, we get errors when attempting to create / remove existing
toolbar controls from these functions. It seems that the XDocument object is
not fully initialised or in a good state at the time of these function calls.
form onLoad event
Same as for the _startup function - we are unable to create / remove
existing toolbar controls.
form onContextChange event
Inside this function we are able to run code that we want to create existing
toolbar controls - the big problem is that we do not have an onUnload event
in which to remove the toolbar entries! Putting a button on the form is not
good enough for us.
* Run time form design ( Schema / Stylesheet )
For some of our functionality, it would be extremely handy if we had the
ability to on-the-fly change both the underlying schema and the stylesheet of
the currently displayed input form. This functionality is optional, if we
have the ability to create C# code that acts like a plugin.
Many thanks in advance for any help we can get,
Daniel Hams
European Parliament
DG4 - service WepPublishing
Projet : Refonte partielle Europarl
Here are the details about what we would like to do with Infopath, what we
have attempted, and what (we feel) we are currently missing - any help from
Microsoft at all would be extremely smashing and happy warmy feely.
What we are trying to do:
Use Infopath as an application "shell" - have Infopath provide much of the
application data entry functionality, but have custom File->New, File->Edit,
File->Close and remove existing entries. We also need to be able to trap the
user clicking the "Close Window" (upper right) control to prompt the user if
they have unsaved changes.
The custom toolbar / menu entries should be tied into custom C# code with
custom winforms.
N.B. The example code we are using to modify existing toolbars / menu items
can be found here:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;867442
* Plugin functionality
We would _really_ like to have access to similar functionality to the COM
add-ins in other office applications. We have experiemented with the
following functionality inside Infopath Forms to try and achieve this:
_startup and _shutdown methods
Unfortunately, we get errors when attempting to create / remove existing
toolbar controls from these functions. It seems that the XDocument object is
not fully initialised or in a good state at the time of these function calls.
form onLoad event
Same as for the _startup function - we are unable to create / remove
existing toolbar controls.
form onContextChange event
Inside this function we are able to run code that we want to create existing
toolbar controls - the big problem is that we do not have an onUnload event
in which to remove the toolbar entries! Putting a button on the form is not
good enough for us.
* Run time form design ( Schema / Stylesheet )
For some of our functionality, it would be extremely handy if we had the
ability to on-the-fly change both the underlying schema and the stylesheet of
the currently displayed input form. This functionality is optional, if we
have the ability to create C# code that acts like a plugin.
Many thanks in advance for any help we can get,
Daniel Hams
European Parliament
DG4 - service WepPublishing
Projet : Refonte partielle Europarl