View Single Post
 
Old June 1st, 2006, 04:29 PM
veeru123 veeru123 is offline
Registered User
 
Join Date: Jun 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can get rid of the error message by creating a STA thread for your printing job as the error message indicates.

eg.

ThreadStart threadDelegate = new ThreadStart(ObjectName.MethodName);
Thread thread = new Thread(threadDelegate);
thread.SetApartmentState(ApartmentState.STA);
thread.Start();
thread.Join();