Export to MHTL using code

S

salva.gomez

Hi all,
i want to export my filled form using this code in a button :

XDocument.CurrentView.Export('C:\\Temp\\Test.mhtml', "MHT");

but when i push the button i receive this error

Error:

'XDocument.CurrentView' es null or is not an objet
File:script.js
Líne:28


Can anyone help me? I'm newbie in infopath coding

Thanks

Salva.
 
Top