How to create header in code
Hello,
I tried to create a report in code as follows:
// Create report
report = new TfrxReportClass();
// Create page
IfrxReportPage page = report.CreateReportObject(
report as IfrxComponent,
typeof(IfrxReportPage).GUID,
"DemoPage") as IfrxReportPage;
// Create title and his memo
IfrxBand title = report.CreateReportObject(
page as IfrxComponent,
typeof(IfrxReportTitle).GUID,
"Report Title") as IfrxBand;
IfrxMemoView title_memo = report.CreateReportObject(
title as IfrxComponent,
typeof(IfrxMemoView).GUID,
"Title memo") as IfrxMemoView;
// Create DataBand
IfrxDataBand band = report.CreateReportObject(
page as IfrxComponent,
typeof(IfrxDataBand).GUID,
"MasterData2") as IfrxDataBand;
IfrxMemoView memo1 = report.CreateReportObject(
band as IfrxComponent,
typeof(IfrxMemoView).GUID,
"MemoView1") as IfrxMemoView;
IfrxMemoView memo2 = report.CreateReportObject(
band as IfrxComponent,
typeof(IfrxMemoView).GUID,
"MemoView2") as IfrxMemoView;
IfrxMemoView memo3 = report.CreateReportObject(
band as IfrxComponent,
typeof(IfrxMemoView).GUID,
"MemoView3") as IfrxMemoView;
But how could I be able to create the header for memo1, memo2 and memo3?
Thanks.
I tried to create a report in code as follows:
// Create report
report = new TfrxReportClass();
// Create page
IfrxReportPage page = report.CreateReportObject(
report as IfrxComponent,
typeof(IfrxReportPage).GUID,
"DemoPage") as IfrxReportPage;
// Create title and his memo
IfrxBand title = report.CreateReportObject(
page as IfrxComponent,
typeof(IfrxReportTitle).GUID,
"Report Title") as IfrxBand;
IfrxMemoView title_memo = report.CreateReportObject(
title as IfrxComponent,
typeof(IfrxMemoView).GUID,
"Title memo") as IfrxMemoView;
// Create DataBand
IfrxDataBand band = report.CreateReportObject(
page as IfrxComponent,
typeof(IfrxDataBand).GUID,
"MasterData2") as IfrxDataBand;
IfrxMemoView memo1 = report.CreateReportObject(
band as IfrxComponent,
typeof(IfrxMemoView).GUID,
"MemoView1") as IfrxMemoView;
IfrxMemoView memo2 = report.CreateReportObject(
band as IfrxComponent,
typeof(IfrxMemoView).GUID,
"MemoView2") as IfrxMemoView;
IfrxMemoView memo3 = report.CreateReportObject(
band as IfrxComponent,
typeof(IfrxMemoView).GUID,
"MemoView3") as IfrxMemoView;
But how could I be able to create the header for memo1, memo2 and memo3?
Thanks.
Comments