Print html document from Windows Service in C# without print dialog

后端 未结 3 1373
生来不讨喜
生来不讨喜 2020-12-03 03:58

I am using a windows service and i want to print a .html page when the service will start. I am using this code and it\'s printing well. But a print dialog box come, how do

3条回答
  •  眼角桃花
    2020-12-03 04:36

    In windows service the Microsoft web browser control is not working. I had used that code it's working fine in windows application but when i am using within a windows service then the program getting stuck in this line

    axWebBrowser1.Navigate(@"C:\mydoc.html", ref empty, ref empty, ref empty, ref empty);

    thanks for reply, Anup Pal

提交回复
热议问题