Printing Options |
Post Reply |
Author | |
Michl
Senior Member Joined: 14 September 2007 Status: Offline Points: 138 |
Post Options
Thanks(0)
Posted: 03 June 2014 at 5:29am |
I have a report control. Records can contain notes. On screen the user see eg. 3 lines of preview.
But on printing, all lines should be print. I tried to manipulate SetMaxPreviewLines() set to INT_MAX (maximum positive lines) and restore the value after printing like codjock it doing (see CXTPReportView::OnPreparePrinting). That works, but it has a side effect. While printing, my report on screen shows, of course, all lines of notes, too. What's the best practice to suppress the changed properties don't take effect on screen. Create a seperatre report control instance in a virtual view and copy all columns and rows? Is there an easier way? Confused E.g. it's enough to overwrite GetPreviewLinesCount(), but it is not virtual. Thanks |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |