HI,
Totally newbie question but I just can't get the syntax right.
I am trying to export a form as a mht file with the name based on a field in
the form.
Can anyone advise where I am going wrong in the following code?
Thanks
Iain
{
var saveField
=XDocument.DOM.selectSingleNode("/dfs:myFields/dfs:dataFields/d:Cases/@Client_Name");
var name = saveField.text;
XDocument.SaveAs("C:\"&name&".mht");
}
evilgenius - 27 Nov 2007 12:44 GMT
I believe the problem is that in javascript\jscript the + character is
the concat character so try:
XDocument.SaveAs("C:\"+name+".mht");
Or
XDocument.SaveAs("C:\\"+name+".mht"); (I have had some issues with the
slash character)
eg
> HI,
>
[quoted text clipped - 20 lines]
>
> }