Print Page | Close Window

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

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=19072
Printed Date: 21 November 2024 at 7:26am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: v15.1.3.0 - CXTPReportRow::Draw -> new param
Posted By: FSauer
Subject: v15.1.3.0 - CXTPReportRow::Draw -> new param
Date 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.



Replies:
Posted By: ABuenger
Date 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


Posted By: FSauer
Date 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...



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