Save PDF to Server Directory

I want to export my grid or a model as a pdf to server folder, and then merge it with another pdf template.

I know I can export the pdf via the following code:

    public async Task PdfExport()
    {
          string FileLocation = "Upload/Save/"; //location I want to save file to
          PdfExportProperties ExportProperties = new PdfExportProperties();
          ExportProperties.FileName = "test.pdf";
          await this.DefaultGrid.PdfExport(ExportProperties);
    }

Is there an ExportProperties method to save the file to a specific directory? Or is there a better way to save the data as a pdf in lets say a filestream for example?



3 Replies

JP Jeevakanth Palaniappan Syncfusion Team December 7, 2020 01:56 PM UTC

Hi Slynch, 
 
Greetings from Syncfusion support. 
 
We have analyzed your query and we understand that you want export the Grid data to pdf file locally. Currently we have support to export the Grid data to pdf file with browser download option alone. Refer the below UG documentation for your reference 
  
  
but we do not have support to export the Grid data to local save option. Since it is a known request, we have considered it as a feature and logged a feature request task for this requirement “Provide Local save export options support in Grid Export”. We are always trying to make our products better and feature requests like yours are a key part of our product growth efforts.     
     
You can now track the current status of this feature request here.     
  
     
At the planning stage for every release cycle, we review all open features and identify features for implementation based on specific parameters including product vision and technological feasibility. It will be implemented in any of our upcoming releases.     
  
You can communicate with us regarding the open features any time using our above Feature Report page.   
 
Please let us know if you have any concerns. 
 
Regards, 
Jeevakanth SP. 



SL slynch December 7, 2020 08:16 PM UTC

OK, thank you Jeevaknth.


VN Vignesh Natarajan Syncfusion Team December 8, 2020 04:54 AM UTC

Hi Stephen,  
 
Thanks for the update. 
 
We will get back to you once the reported feature “Provide Local save export options support in Grid Export” is implemented and rolled out successfully.  
 
Till then we appreciate your patience.   
 
Regards, 
Vignesh Natarajan  


Loader.
Up arrow icon