Tuesday, March 8, 2016

The calling thread must be STA, because many UI components require this.

  // Create a thread  
       Thread newWindowThread = new Thread(new ThreadStart(() =>  
         // You can use your code  
         // Create and show the Window  
         FaxImageLoad obj = new FaxImageLoad(destination);  
         // Start the Dispatcher Processing  
       // Set the apartment state  
       // Make the thread a background thread  
       newWindowThread.IsBackground = true;  
       // Start the thread  

C# print file on LAN Printer

If you want to print any file on network printer then you can try with this code block // Change Default Printer System.Ma...