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/
Loading

Amit GuptaRank #190 · 12.8K reputationPosted Apr 16, 2021, 10:05 AM EDT
Amit GuptaRank #190 · 12.8K reputationPosted Apr 13, 2021, 3:32 PM EDT
Amit GuptaRank #190 · 12.8K reputationPosted Apr 12, 2021, 8:26 AM EDT
Amit GuptaRank #190 · 12.8K reputationPosted Apr 12, 2021, 8:30 AM EDT
Amit GuptaRank #190 · 12.8K reputationPosted Apr 13, 2021, 3:27 AM EDT
Samatha Reddy118 reputationPosted Apr 13, 2021, 3:32 AM EDT
I have already tried this (https://stackoverflow.com/a/57257205). But it is not working for me, I'm not getting any exception but it is printing only the visible part of the form and I'm using .net Framework 4.0.
Amit GuptaRank #190 · 12.8K reputationPosted Apr 13, 2021, 7:46 AM EDT
Rijwan AnsariRank #82 · 24.2K reputationPosted Apr 14, 2021, 1:07 PM EDT