Print Page | Close Window

wrong CalculateRowHeight

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


Topic: wrong CalculateRowHeight
Posted By: zitz
Subject: wrong CalculateRowHeight
Date Posted: 05 November 2008 at 11:54am
I use Xtreme ToolkitPro v11.2.0

Bug in XTPReportPaintManager.cpp
int CXTPReportPaintManager::CalculateRowHeight(CDC* pDC, const CString& strText, int nMaxWidth, BOOL bWordBreak)

To fix this bag need remove from text (const CString& strText) symbol '\r' because GetTextExtentX count it (new line '\r\n')
"word\r" > "word"
If "word\r\n" in end of string, RowHeight have extra new line
:(



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