Horje
print a file from C# Code Example
print a file from C#
private void SendToPrinter()
{
   ProcessStartInfo info = new ProcessStartInfo();
   info.Verb = "print";
   info.FileName = @"c:\output.pdf";
   info.CreateNoWindow = true;
   info.WindowStyle = ProcessWindowStyle.Hidden;

   Process p = new Process();
   p.StartInfo = info;
   p.Start();

   p.WaitForInputIdle();
   System.Threading.Thread.Sleep(3000);
   if (false == p.CloseMainWindow())
      p.Kill();
}




Csharp

Related
function c# Code Example function c# Code Example
instantiate prefab unity Code Example instantiate prefab unity Code Example
C# backup sql Code Example C# backup sql Code Example
get file path in .net core from wwwroot folder Code Example get file path in .net core from wwwroot folder Code Example
regex for accepting a file name c# Code Example regex for accepting a file name c# Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11