Я использую службу Windows и хочу распечатать страницу .html при запуске службы. Я использую этот код, и он хорошо печатается. Но появляется диалоговое окно печати, как мне печатать без диалогового окна печати?
public void printdoc(string document)
{
Process printjob = new Process();
printjob.StartInfo.FileName = document;
printjob.StartInfo.UseShellExecute = true;
printjob.StartInfo.Verb = "print";
printjob.StartInfo.CreateNoWindow = true;
printjob.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
printjob.Start();
}
Есть ли другой способ распечатать это без отображения диалогового окна печати.
Заранее спасибо, Ануп Пал