Export Entire DashboardLayout

Hi,
I'm able to export individual dashboard widgets in excel and PDF, but I cannot find any documentation on how to export the entire dashboard to a file.  The API doesn't seem to provide a way to do this from what I can tell, but I've seen posts alluding to exporting dashboards - but no code provided.

3 Replies 1 reply marked as answer

KR Keerthana Rajendran Syncfusion Team May 14, 2021 11:41 AM UTC

Hi Whit Matthews, 
 
Thanks for contacting Syncfusion support.  
 
We checked your requirement with Dashboard Layout and would like to let you know that we don’t have inbuilt exporting support in the Dashboard Layout component. 

Refer to the following UG for setting panel content.

  
However, we can export the controls inside Dashboard Layout by exporting an entire HTML page/URL into PDF document by using HTML to PDF converters. Syncfusion HTML converter supports conversion with WebKit/Blink and IE rendering engines, all the rendering engines supports CSS/JavaScript. We have created a simple sample to convert the Dashboard Layout with PivotChart into a PDF document by using HTML string to PDF conversion. We have attached the sample for your reference. Kindly please try the below sample in your end and let us know the result.    
   
Please refer the sample and output PDF document from below link,  
 
Please refer the below links for more information,       
 
  
Note: HTML to PDF converter is only supported in server side (.NET Core and .NET Framework).    
 
For converting HTML string to PDF, we have to specify the base URL (path of the resources) to load the external images/scripts/styles used in the HTML string. So, please make sure that the provided path (Base URL) contains (styles, scripts, images) used in the HTML string.       
 
Please refer to the below link for preserving resources (CSS/Images/Scripts etc.,) about HTML string to PDF conversion.       
 
Please check whether the above details meets your requirement. If not, kindly get back to us with some additional details on your exact requirement to serve you better.  
 
Regards, 
Keerthana.   
 


Marked as answer

PD Pawan Dwivedi June 24, 2024 12:11 PM UTC

My application is build in React JS, is there any way to convert the html content into pdf.



SA SureshRajan Alagarsamy Syncfusion Team replied to Keerthana Rajendran June 25, 2024 01:45 PM UTC

Hi Pawan,


As our Dashboard Layout serves as a layout component, the export functionality becomes essential in accordance with the application's needs. As previously mentioned, the Dashboard Layout component does not have built-in exporting support. To meet your requirements, we suggest exporting the entire page as a workaround which we suggested in the above update.


Regards,
Suresh.


Loader.
Up arrow icon