G
Greg McAllister
OK coders - here is a tough one. I have created a complete and functional
template of a form. It works very well until I try to open a the form that
has been saved after the initial creation. The problem being that I am unable
to debug the code.
I have tried a work around - Place code in my VS 2003 solution that will
allow me to pick between the standard open code or open a specific form. It
seems to get very ill when trying to load the specific form with an error:
"Infopath cannopt create a new, blank form. The form template is not valid."
By changing the existing forms version (edit the xml document to match the
debuggers version) I then get an application object error.
Users can open a new form by using a batch file (this makes sure they have
the latest published and fully trusted form) or they can open the existing
form. To debug an existing form I need code to open that form with out
starting a new form. I have tried placing open code in the startup but that
fails saying i can't do something like that in the startup. I tried putting
the open in the OnLoad function but it says another form is already loading
(the new form I suppose) so where do I place my open so as open the existing
form?
template of a form. It works very well until I try to open a the form that
has been saved after the initial creation. The problem being that I am unable
to debug the code.
I have tried a work around - Place code in my VS 2003 solution that will
allow me to pick between the standard open code or open a specific form. It
seems to get very ill when trying to load the specific form with an error:
"Infopath cannopt create a new, blank form. The form template is not valid."
By changing the existing forms version (edit the xml document to match the
debuggers version) I then get an application object error.
Users can open a new form by using a batch file (this makes sure they have
the latest published and fully trusted form) or they can open the existing
form. To debug an existing form I need code to open that form with out
starting a new form. I have tried placing open code in the startup but that
fails saying i can't do something like that in the startup. I tried putting
the open in the OnLoad function but it says another form is already loading
(the new form I suppose) so where do I place my open so as open the existing
form?