Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Printing Options
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Printing Options

 Post Reply Post Reply
Author
Message
Michl View Drop Down
Senior Member
Senior Member


Joined: 14 September 2007
Status: Offline
Points: 138
Post Options Post Options   Thanks (0) Thanks(0)   Quote Michl Quote  Post ReplyReply Direct Link To This Post Topic: Printing Options
    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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.