Totals not coming in excel generation for large data set

Facing an issue where record count is more than 10million, while generating excel report totals on each page is not coming and due to full utilization of no.of rows in a sheet we can’t put the formula manually.


This Topic is created by amjad.sahi using Email to Topic tool.

@amjad.sahi

When generating Excel reports with a large dataset, such as one exceeding 10 million records, you may encounter issues with totals not appearing on each page. This can be particularly challenging due to the limitations of Excel regarding the number of rows and the complexity of formulas.

To address this issue, consider the following recommendations:

  1. Use Smart Markers: If you are not already using Smart Markers, they can help in generating subtotals and totals dynamically. This approach allows you to bind data from multiple data tables efficiently.

  2. Split Data Across Multiple Sheets: Given the large volume of data, it may be beneficial to split the dataset across multiple sheets. This can help manage performance and ensure that Excel can handle the calculations more effectively.

  3. Recalculate Formulas on Open: To ensure that totals are calculated correctly when the Excel file is opened, you can set the ReCalculateOnOpen property to true. This can be done with the following code snippet:

    Workbook workbook = new Workbook("path_to_your_file.xlsx");
    workbook.Settings.ReCalculateOnOpen = true;
    workbook.Save("path_to_save_file.xlsx");
    
  4. Check Formula Placement: Ensure that your formulas for totals are correctly placed in the Excel template. If they are not calculating as expected, you may need to verify the formula references and ensure they are set up correctly.

  5. Performance Optimization: If you are processing a significant amount of data, consider optimizing your data binding process. Binding one sheet at a time may improve performance compared to binding all data at once.

By implementing these strategies, you should be able to generate your Excel reports with the required totals even for large datasets.

If you continue to experience issues, please provide more details about your implementation, and I can assist further.

Sources:
[1]: Generate subtotals and totals using smart markers
[2]: Generate subtotals and totals using smart markers
[3]: Generate subtotals and totals using smart markers

@amdhawan,

Could you please provide more information about your issue and include any relevant details? Additionally, please share your sample Excel file(s) and a code snippet that illustrates the problem. We will check your issue and assist you soon.