Print a FormView
-
Hi my program print a form-view correctly if it does not have scroll bar. if scroll bar is present then we can print only visible area of scroll bar. But i need to print full form-view with all control . i.e. scroll bar should not be effect on print procedure. many sample available but no one fulfill above requirement.
-
Hi my program print a form-view correctly if it does not have scroll bar. if scroll bar is present then we can print only visible area of scroll bar. But i need to print full form-view with all control . i.e. scroll bar should not be effect on print procedure. many sample available but no one fulfill above requirement.
The view that you see on the screen is merely one 'page' which you can scroll up, down, left and right. After each scroll operation the view is repainted to show just the data within the current view. In order to print all pages you need to add some similar print logic to your program which will iterate through all your data formatting it correctly to the printer device of your choice.
It's time for a new signature.
-
Hi my program print a form-view correctly if it does not have scroll bar. if scroll bar is present then we can print only visible area of scroll bar. But i need to print full form-view with all control . i.e. scroll bar should not be effect on print procedure. many sample available but no one fulfill above requirement.
-
Here is an old post of mine that describes printing in MFC in a generic way. It was written for CScrollView but I'm hoping it'll help regardless...Printing Sample[^]
Thanks for response it work good but, my requirement is still open. my form view have many control and scroll bar hide some control so how can print full image of form view.
-
Thanks for response it work good but, my requirement is still open. my form view have many control and scroll bar hide some control so how can print full image of form view.
-
How are you trying to print it now. What does your "Draw" code look like? (small snippet)
fine, I could not print formview properly that have scroll bar. so i remove scroll bar.