I have to print html file when user clicks on print button and it is working fine (prompts print dialog) when I set default browser as IE. If I change default browser to chrome or firefox other than IE, the code does not prompting print dialog instead it just opens html file in the browser. Can you please let me know what configuration I have missed in the below code?
string TempFile = @"D:\test.html";
ProcessStartInfo Params = new ProcessStartInfo();
Params.FileName = "iexplore.exe";
Params.Arguments = TempFile;
Params.UseShellExecute = false;
Params.Verb = "print";
Params.WindowStyle = ProcessWindowStyle.Hidden;
Params.CreateNoWindow = true;
Process.Start(Params);