View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Eric Dan Eric Dan is offline
external usenet poster
 
Posts: 2
Default Problems when printing to the virtual printer

Hello,

I am trying to print an Excel document using the Excel object model (C# .NET
code €“ windows forms) to the "Microsoft Office document image printer".
(objExcel.ActiveWorkbook.PrintOut€¦)

Basically it works with no problems when doing this task on the main form's
thread.

However, trying to do this task (which is basically converting Excel
documents into tiff files) on another new thread (defined as non background
and as STA thread) , leaves the "Microsoft Office document imaging"
application open after printing the file.

Attention:
I have unchecked the "View document Image" settings for this user and
basically it does not open the "Microsoft Office document imaging" after the
printing.
It opens the "Microsoft Office document imaging" only if used not on the
main thread.

I would not wan't this task to be executed on the main thread.

Any ideas?

--
Thanks
Eric