O
Oblivion
Greetings-
I'm attempting to create a button in a form that, when clicked, will
export the current view in MHT format to a single set location with the
filename set to the contents of one of the form fields; IE if field1 =
"Test Tester" the file would be saved in the hard-coded unchanging
location witht he filename "Test Tester.MHT" This being beyond my
current jscript knowledge, I decided to see if I could get the button
to do a simple export using the example script given in the Help menu
before I tried to do anything more complicated.
However, I cannot even accomplish a simple test export command from a
button using the XDocument.View.Export("C:\\MyView", "MHT"); command.
No error is returned when clicking the button, but nothing happens
either. No file is created.
The button code:
function CTRL10_5::OnClick(eventObj)
{
XDocument.View.Export("C:\\MyView.mht", "MHT");
}
The form is signed and considered fully-trusted by the computer which
I'm attempting to create the MHT file on.
Any and all help is greatly appreciated. Thank you.
I'm attempting to create a button in a form that, when clicked, will
export the current view in MHT format to a single set location with the
filename set to the contents of one of the form fields; IE if field1 =
"Test Tester" the file would be saved in the hard-coded unchanging
location witht he filename "Test Tester.MHT" This being beyond my
current jscript knowledge, I decided to see if I could get the button
to do a simple export using the example script given in the Help menu
before I tried to do anything more complicated.
However, I cannot even accomplish a simple test export command from a
button using the XDocument.View.Export("C:\\MyView", "MHT"); command.
No error is returned when clicking the button, but nothing happens
either. No file is created.
The button code:
function CTRL10_5::OnClick(eventObj)
{
XDocument.View.Export("C:\\MyView.mht", "MHT");
}
The form is signed and considered fully-trusted by the computer which
I'm attempting to create the MHT file on.
Any and all help is greatly appreciated. Thank you.