After months of work on .NETpad’s printing functionality, I think I’ve finally arrived at a solution that works. By which I mean Charles Petzold figured it out using C# 18 years ago and I converted his code to Visual Basic, making only minor changes.
Which, honestly, is a small achievement in its own right. But rather than take any credit for this work, let me instead explain how you can add printing support that actually works to .NETpad.