How do I avoid the server busy dialog when I print Excel from C#?

Asked 2 years ago, Updated 2 years ago, 113 views

If you run Worksheet.PrintOut from C# with XPS on the printer, a file save dialog appears.
If you leave it in that state for a while, a dialog will appear while the server is in use.
Is the only way to prevent the server from displaying a busy dialog is to print on a separate thread?

c# windows excel com

2022-09-30 16:51

1 Answers

It was resolved by running on a different thread using a timer.


2022-09-30 16:51

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.