Print Page | Close Window

[solved] text wrap when printed

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=22801
Printed Date: 27 April 2024 at 11:48pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [solved] text wrap when printed
Posted By: vjedlicka
Subject: [solved] text wrap when printed
Date Posted: 26 November 2015 at 8:42am
Is it possible to wrap long texts (instead of adding ...) when the report control is printed?

Thank you


-------------
Thank you
Vaclav
---------------------
ToolkitPro 20.1.0
VS2010-2022, Windows 11



Replies:
Posted By: olebed
Date Posted: 02 December 2015 at 8:01am
Hello Vaclav,

Please, describe how you customize and fill Report Control  before printing.
Also screenshots can be useful as well.

Regards,
 Oleksandr Lebed


Posted By: vjedlicka
Date Posted: 02 December 2015 at 8:05am
Hi Oleksandr,

I am just asking if it is possible. I did not see any sample report with wrapped (multiline) text.

Thanks
Vaclav



-------------
Thank you
Vaclav
---------------------
ToolkitPro 20.1.0
VS2010-2022, Windows 11


Posted By: olebed
Date Posted: 02 December 2015 at 8:18am
Ok, I thought that you have problem with multiline text in ReportControl.

For example of showing multiline text you can see method  CReportSampleView::OnReportcontrolMultilinesample()    in MFC  ReportSample
	int nCount = GetReportCtrl().GetColumns()->GetCount();
for( int i = 0; i < nCount; i++)
{
CXTPReportColumn* pColumn = GetReportCtrl().GetColumns()->GetAt(i);
if (pColumn)
{
int nAlign = pColumn->GetAlignment();
nAlign = m_bMultilineSample ? (nAlign | DT_WORDBREAK) : (nAlign & (~DT_WORDBREAK));
pColumn->SetAlignment(nAlign);
}
}
GetReportCtrl().GetPaintManager()->SetFixedRowHeight(!m_bMultilineSample);
GetReportCtrl().GetPaintManager()->m_bUseColumnTextAlignment = TRUE;
GetReportCtrl().AdjustScrollBars();



Posted By: vjedlicka
Date Posted: 02 December 2015 at 9:05am
ok, thank you!
Vaclav



-------------
Thank you
Vaclav
---------------------
ToolkitPro 20.1.0
VS2010-2022, Windows 11



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