Thank you! That totally fixed it. This right here is the exact reason I loathe software developers, because this makes no sense. How sad that Epicor support couldn’t even provide this answer for us, given how much we pay them. Thanks again!
So the reason why this is used in this case is so that the “page” size can be set on the worksheet when it exports so that if you want to print your spreadsheet it knows the page boundaries
now why wasn’t it surrounded in a try catch that’s a different story. But as to why it is there, is so that your excel sheet can have these nice page boundaries defined.
Required? No… Nice to have? Yes
First thoughts, as a sysadmin, is that maybe your default printer is a network printer that is unavailable over VPN? It seems setting it to any queue works, although I haven’t tried Microsoft Print to PDF.
Thanks! I’ve been asked more than once why it checks the printer so now I have a real answer that’s close to what I’ve been using. “The export uses the print spooler for formatting instead of plain text output”