Hi.
we make Cross Tab Report. This report has 3 data Source. OD_Columns, OD_Rows, OD_Values.
OD_Columns is Column Data. OD_Rows is Row Count Data. OD_Values is values.
i want to dymamicaally Column size and Align according to OD_Columns.ALIGN.
if OD_Columns.ALIGN is right, Text Option > Right to Left set false, OD_Columns.ALIGN is Left, Text Option > Right to Left set true.
is it possible?
how to set column size and align at Crosstab dynamically.
how to set column size and align at Crosstab dynamically.
- Attachments
-
- adhoc.zip
- (1.32 KiB) Downloaded 160 times
Re: how to set column size and align at Crosstab dynamically
Hello,
You can use the following code in the BeforePrint event:
Thank you.
You can use the following code in the BeforePrint event:
Code: Select all
switch (OD_Columns.ALIGN)
{
case "LEFT":
textControlAlign.HorAlignment = Stimulsoft.Base.Drawing.StiTextHorAlignment.Left;
break;
case "CENTER":
textControlAlign.HorAlignment = Stimulsoft.Base.Drawing.StiTextHorAlignment.Center;
break;
case "RIGHT":
textControlAlign.HorAlignment = Stimulsoft.Base.Drawing.StiTextHorAlignment.Right;
textControlAlign.TextOptions.RightToLeft = true;
break;
case "WIDTH":
textControlAlign.HorAlignment = Stimulsoft.Base.Drawing.StiTextHorAlignment.Width;
break;
}