New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TableObject Sum(Cell6) Not Working in Community Designer #47
Comments
Hi, in your report the data cell is |
Thank you. That Worked. In the designer, Table1 PrintOn property has RepeatedBand checked, in my SCriptCode,
Couldn't get it to work. Thanks for helping! |
sorry didnt mean to close this issue yet. https://www.fast-report.com/en/forum/index.php?showtopic=11079 Tablecell have printon property. This may work. TableCell tc also band must have repeat on every page checked. in my template, Table1.RepeatHeaders is set to true |
The Use the following code: table.RepeatHeaders = true;
table.FixedRows = 1; // for repeat only first row on every page |
thanks. that worked. now i may have a different problem. in the last page, i get only the table header and table footer printed with no data in between because there's no more data. so it looks like this: Name Price Can I do better than this? Just wondering :-) Any conditional capabilities I could explore? Thank you so much for helping a newbie! |
Hi, You can check the count of available rows and make the page brake from a code: table.PageBreak(); int rowIndex = 0;
while (rowData.HasMoreRows)
{
// print the table body
Table1.PrintRow(1);
Table1.PrintColumns();
// check for table footer for last page
if (rowData.RowCount - rowIndex < 3)
{
Table1.PageBreak();
rowIndex = 0;
}
else
rowIndex++;
// go next data source row
rowData.Next();
} |
thank you for the tip! |
I'm using the attached Csv file as Data Source for the attached productTable.frx Report Template.
when i preview the results in the Community Designer / Viewer, the Sum of all the values in the Price column is incorrectly showing as 0.
i'm building the report table dynamically, using the Table.frx example (my Script code is similar to that in Table.frx's Script Code).
What might I be doing incorrectly??
Thanks for helping!
CsvAsDataSourceTableObjectSumCellNotWorking.zip
The text was updated successfully, but these errors were encountered: