C++ Builder中 Memo 强制换行问题的

来源:百度知道 编辑:UC知道 时间:2024/06/08 15:35:13
在C和C++中,会写printf("good!\n");其中 \n 实现换行
求在C++ Builder中的强制换行符?

1、我使用的是fastreport打印报表,可是需要判断第一个字段的数据,如果与上一行的内容不同则需要强制换行。
使用quickReport的方法如下:
void __fastcall TFrmPreview::DetailBand2BeforePrint(TQRCustomBand *Sender,
bool &PrintBand)
{
AnsiString temp = FrmPrint->tempQuery->FieldByName("ProjectNo")->AsString.Trim();
if(temp != "")
{
curPrj = temp;
if(curPrj != LastProject)
{
LastProject = curPrj;
if(m_first != 0)
{
QuckSeason->NewPage();
newPage = true;
}
}
}
m_first++;
QRShape48->Height = Sender->Height