Long to int
Posted: Thu May 30, 2019 2:35 pm
Hi !! I´m trying to have a DataBand in a report that will set the number of columns depending on the number of rows.
I´m trying this on the before print event and getting an error about implicit conversion:
DataBand1.Columns = Count(DataBand1)
Then I tried this but it didn't work:
DataBand1.Columns = int.Parse(Count(DataBand1))
I also tried to create a variable as int and it didn't work as well:
ColSize = Count(DataBand1));
DataBand1.Columns = ColSize
How can I solve this problem ??
And would it be possible to set the width of the column the same as the width of a text component on something like this :
DataBand1.ColumnWidth = Text1.Width
Thanks in advanced !!
I´m trying this on the before print event and getting an error about implicit conversion:
DataBand1.Columns = Count(DataBand1)
Then I tried this but it didn't work:
DataBand1.Columns = int.Parse(Count(DataBand1))
I also tried to create a variable as int and it didn't work as well:
ColSize = Count(DataBand1));
DataBand1.Columns = ColSize
How can I solve this problem ??
And would it be possible to set the width of the column the same as the width of a text component on something like this :
DataBand1.ColumnWidth = Text1.Width
Thanks in advanced !!