Print Page | Close Window

[SOLVED] No Items to Show Text

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=5324
Printed Date: 16 September 2024 at 7:46pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [SOLVED] No Items to Show Text
Posted By: jcollier
Subject: [SOLVED] No Items to Show Text
Date Posted: 19 October 2006 at 4:03pm
Currently when there are no records in a reportcontrol, it says "There are no items to show".  Is there any way I can set that to a custom string?



Replies:
Posted By: gshawn
Date Posted: 19 October 2006 at 9:45pm
Yep. Check out ReportControl.PaintManager.NoItemsText in the help.


Posted By: jcollier
Date Posted: 20 October 2006 at 11:46am
Perfect!  Note that I had to call rpt.Populate to get the text to show the changes which the Help does not mention but that's fine.

Thanks!


Posted By: gshawn
Date Posted: 20 October 2006 at 9:17pm
yeah sorry about that, I forgot to mention it


Posted By: sojins
Date Posted: 11 August 2011 at 2:23am
void CXTPReportControl::DrawNoItems(CDC* pDC, const CRect& rcClient)
{
    pDC->SetTextColor(GetPaintManager()->m_clrWindowText);
    CString strNoItems = GetPaintManager()->m_strNoItems;
...

}


    CXTPReportControl& wndReport = GetReportCtrl();
    CXTPReportPaintManager *pPaintMgr = wndReport.GetPaintManager();
    pPaintMgr->m_strNoItems.Format(_T(""));

Smile



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