Samatha Reddy

Samatha Reddy

  • 1.9k
  • 106
  • 297

How to print invisible part of the windows forms screen?

Apr 12 2021 11:40 AM
Hello

we are using a windows form screen for visualization. we have a requirement to print this visualization screen.

The problem is we have huge controls on the form (we did not take these controls from the toolbox, instead we are drawing those using some classes like Rectangle) and used both horizontal and vertical scroll bars. but it is printing only the visible part of the screen, but not the other.

I have seen many examples but they are not matching with my requirements.

What I have tried:

I have implemented it like below
https://www.c-sharpcorner.com/UploadFile/srajlaxmi/printing-windows-form-in-C-Sharp-net/

Answers (8)