Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - [SOLVED] No Items to Show Text
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic Closed[SOLVED] No Items to Show Text

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


Joined: 15 February 2006
Status: Offline
Points: 250
Direct Link To This Post Topic: [SOLVED] No Items to Show Text
    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?
Back to Top
gshawn View Drop Down
Senior Member
Senior Member


Joined: 04 October 2004
Status: Offline
Points: 227
Direct Link To This Post Posted: 19 October 2006 at 9:45pm
Yep. Check out ReportControl.PaintManager.NoItemsText in the help.
Back to Top
jcollier View Drop Down
Senior Member
Senior Member


Joined: 15 February 2006
Status: Offline
Points: 250
Direct Link To This Post 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!
Back to Top
gshawn View Drop Down
Senior Member
Senior Member


Joined: 04 October 2004
Status: Offline
Points: 227
Direct Link To This Post Posted: 20 October 2006 at 9:17pm
yeah sorry about that, I forgot to mention it
Back to Top
sojins View Drop Down
Newbie
Newbie


Joined: 11 August 2011
Status: Offline
Points: 1
Direct Link To This Post 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
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.219 seconds.