Hallo,
ich möchte eine HTML datei direkt in meinem Programm laden und drucken, ich benutze keine Windows.Form. der Code unten funktioniert, aber es öffnet sich der Druckerdialog für drucker auswahl und das möchte ich nicht haben, ich möchte direkt Standarddrucker benutzen, wer weiss wie das geht?
public void PrintFile(string fullPath)
{
Process printProcess = new Process();
printProcess.StartInfo.FileName = fullPath;
printProcess.StartInfo.UseShellExecute = true;
printProcess.StartInfo.Verb = "Print";
printProcess.StartInfo.CreateNoWindow = true;
printProcess.EnableRaisingEvents = true;
printProcess.Start();
}
ich möchte eine HTML datei direkt in meinem Programm laden und drucken, ich benutze keine Windows.Form. der Code unten funktioniert, aber es öffnet sich der Druckerdialog für drucker auswahl und das möchte ich nicht haben, ich möchte direkt Standarddrucker benutzen, wer weiss wie das geht?
public void PrintFile(string fullPath)
{
Process printProcess = new Process();
printProcess.StartInfo.FileName = fullPath;
printProcess.StartInfo.UseShellExecute = true;
printProcess.StartInfo.Verb = "Print";
printProcess.StartInfo.CreateNoWindow = true;
printProcess.EnableRaisingEvents = true;
printProcess.Start();
}
Comment