Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - v15.1.3.0 - CXTPReportRow::Draw  -> new param
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

v15.1.3.0 - CXTPReportRow::Draw -> new param

 Post Reply Post Reply
Author
Message Reverse Sort Order
FSauer View Drop Down
Groupie
Groupie
Avatar

Joined: 10 May 2006
Location: Germany
Status: Offline
Points: 96
Post Options Post Options   Thanks (0) Thanks(0)   Quote FSauer Quote  Post ReplyReply Direct Link To This Post Topic: v15.1.3.0 - CXTPReportRow::Draw -> new param
    Posted: 18 October 2011 at 4:38am
thanks. I think, the new codejock version provides better print functionalities. I will open a new thread to ask about printing...
Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Posted: 17 October 2011 at 7:50pm
Originally posted by FSauer FSauer wrote:


Since v15.1.3.0 Draw has new param. How should this param set?

For any help I'll be glad.


CDC *pDC, CRect rcRow, CRect rcClip, int nLeftOffset, CXTPReportRecordMergeItems &mergeItems, int nColumnFrom, int nColumnTo

rcClip -> The clipping rectangle, rect of your paper / print preview
nLeftOffset -> 0 for printing, only required for horizontal scrolling
mergeItems -> If you don't have merged items just pass a CXTPReportRecordMergeItems object
nColumnFrom -> 0
nColumnTo -> GetColumns()->GetCount()

Codejock support
Back to Top
FSauer View Drop Down
Groupie
Groupie
Avatar

Joined: 10 May 2006
Location: Germany
Status: Offline
Points: 96
Post Options Post Options   Thanks (0) Thanks(0)   Quote FSauer Quote  Post ReplyReply Direct Link To This Post Posted: 17 October 2011 at 10:52am
Hi,

I use the function Draw of CXTPReportRow for a print routine like below:

void CMyReportCtrl::PrintRow(CDC* pDC, CXTPReportRow* pRow, CRect rcRow, int nPreviewHeight){
    if (pRow->IsGroupRow())
    {
        pRow->Draw(pDC, rcRow, 0); return;
    }
...

Since v15.1.3.0 Draw has new param. How should this param set?

For any help I'll be glad.
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.109 seconds.