Print Page | Close Window

Column(s) fitting

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=7897
Printed Date: 22 November 2024 at 1:33pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Column(s) fitting
Posted By: Paddy
Subject: Column(s) fitting
Date Posted: 29 August 2007 at 10:21am
Hi,
I try to change my columns width to a best fit (like a double click for each column):

CXTPReportColumns* theColumns = m_wndReport.GetColumns();
if (NULL != theColumns)
{
    int nbColumns = theColumns->GetCount();
    for (int i = 0; i < nbColumns; i++)
    {
        CXTPReportColumn* theColumn = theColumns->GetAt(i);
        if (NULL != theColumn)
        {
            if (theColumn != m_pSmallPicsColumn)
                m_wndReport.GetReportHeader()->BestFit(theColumn);
        }
    }
}


But it seems the columns just have the width "column.caption+6" as in the source? I need a width like "max_columnentry_width+6"...

Greets,

Patrik



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