To some extent it
depends on what you mean by "call a javascript application". You can
certainly run a copy of cscript,exe or wscript,.exe to host your
javascript code. But that will run as a completely separate process
which may not be what you want.
Something like this should do it...
Process.Start(@"C:\windows\system32\wscript.exe", @"c:\myscript.js");
public void setPage(mshtml.HTMLWindow2Class JSFile) {
window = JSFile;
}
public void scriptPrint(){
window.execScript("report_back('Printing complete!')", "JScript");
}