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 GuptaPosted Apr 16, 2021, 2:05 PM
Rijwan AnsariPosted Apr 14, 2021, 5:07 PM
Amit GuptaPosted Apr 13, 2021, 7:32 PM
Amit GuptaPosted Apr 13, 2021, 11:46 AM
Samatha ReddyPosted Apr 13, 2021, 7:32 AM
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 GuptaPosted Apr 13, 2021, 7:27 AM
Amit GuptaPosted Apr 12, 2021, 12:30 PM
Amit GuptaPosted Apr 12, 2021, 12:26 PM