Print Page | Close Window

Printing Options

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=22316
Printed Date: 28 April 2024 at 1:23am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Printing Options
Posted By: Michl
Subject: Printing Options
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net