Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
125
UltraWebGridDocumentExporter exports blank PDFs when using special datasource
posted

Hi All,

My issue is this:

I have an "Export to PDF" option that I have coded to accompany any UltraWebGrids in my website.  This uses the "UltraWebGridDocumentExporter", and has been working great - when I click the button the PDF document is generated and displays the data from the UltraWebGrid.

However, this only appears to be working when I run the export on UltraWebGrids that have had data loaded into them using the traditional:

"uwgTest.DataSource = someData;

 uwgTest.DataBind();"

In some instances I am using the EntitySpaces esDataSource to bind data to the UltraWebGrid.  It appears in these instances that when I try and export the data in those UltraWebGrids, the PDF is empty.

The interesting thing about this issue is that when I am debugging the method that takes control of generating the exported PDF, I can see that the UltraWebGrid passed to the document exporter DOES contain data:

"// The UltraWebGrid "currentUWG" contains rows at this point, even when coming from an UltraWebGrid utilising the EntitySpaces datasource

uwgDocumentExporter.Export(currentUWG);"

Does anyone have any ideas what might be going wrong here?

Many thanks in advance,

AJ