Index was outside the bounds of array. (Blazor Webassembly)

I am trying to export datagrid data to PDF but i get this error:

Here is my code:


3 Replies

KG Keerthana Ganesan Syncfusion Team September 28, 2022 06:09 PM UTC

Hi Pieterjan,

Welcome from Syncfusion support.

We have analyzed your query and we suspect that an exception occurred because of not defining the IncludeTemplateColumn of PdfExportProperties as true to customize the value of template columns in the pdf document, you must use PdfQueryCellInfoHandler. We have discussed this similar topic in our UG documentation. Kindly refer to the attached documentation for your reference.

Reference link: https://blazor.syncfusion.com/documentation/datagrid/pdf-export#export-template-columns

Kindly get back to us if you have any further queries.

Regards,

Keerthana.



PV Pieterjan van der Leur replied to Keerthana Ganesan September 30, 2022 03:10 PM UTC

Perfect! Thx for the help!



SG Suganya Gopinath Syncfusion Team October 3, 2022 09:39 AM UTC

Hi Pieterjan,

We are glad that the provided details helped to solve your issues.

If this post is helpful, please consider Accepting it as the solution so that other members can locate it more quickly. Please get back to us if you have any queries in future, we are glad to assist you.

Regards,

Suganya Gopinath.




Loader.
Up arrow icon