We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to add title for single exporting

Platform: ASP.NET MVC |
Control: Grid


The following code example shows how to add the title for exporting in excel, word and pdf documents.

  1. Render the Grid control.












2. In excel exporting, you have to add the title for the exported file by using the ActiveSheet” property of the “IWorkBook” class and then set the Range for the title using “Range” property and then added the title using “Text” property of the Range.





3. For word document you have to add the header using “Header” property of the “HeadersFooters” and append the text to the header using “AppendText” property.







4. For pdf document we have added header by adding the template using “PdfPageTemplateElement” class and added the title for the template using “DrawString” method.




The following output is displayed as a result of the above code example.

Figure: how to add the title for exporting



Figure: Word Exporting with Title




Figure: Pdf Exporting with Title


Figure: Excel Exporting with Title


2X faster development

The ultimate ASP.NET MVC UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile