Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Extra-height row printing
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Extra-height row printing

 Post Reply Post Reply
Author
Message
aceproof View Drop Down
Newbie
Newbie


Joined: 24 March 2008
Location: Russian Federation
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote aceproof Quote  Post ReplyReply Direct Link To This Post Topic: Extra-height row printing
    Posted: 25 December 2013 at 2:01am

The row is never printed if its height more then its print area.


ToolkitPro v16.2.6:

int CXTPReportControl::DrawRows(CDC *pDC, CRect &rcClient, int y, CXTPReportRows *pRows, int nTopRow, int nColumnFrom, int nColumnTo, int *pnHeight)

{

        ...

        nRowHeight = pRow->GetHeight(pDC, nRowWidth);
        // Test if row is outside of client rectangle
        if (bIsPrinting)
        {
               // Clipped rows are printed on the next page
                if (y + nRowHeight > rcClient.bottom)
                {
                        break;
                }
        }
        else
        {
                // Clipped rows are drawn
                if (y > rcClient.bottom)
                {
                        break;
                }
          }

        ...

}

Back to Top
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 Posted: 14 May 2014 at 4:37am
Hi

I have the same problem. But the bug is not your specified source snipset.
It's more an implementation problem of whole print preview.

See additional information follow my post:
http://forum.codejock.com/forum_posts.asp?TID=22298&MF=Y&PID=72488
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.141 seconds.