Free Support Forum - aspose.com

Setheader Font size-Font Bold-FontName

hi,
i would like to set the font attribute of my “Report Title” using the setHeader method.
here is my sample code , i intend to set the font to “Arial,Bold” but it does work.
xlsWrkSheet.PageSetup.SetHeader(1, “Report Title” & “&Arial,Bold”)
please show me sample code on how to set the font properties
font size
font name,font style

thanks in advance.
njel

Hi,

Thanks for considering Aspose.

Well, you got to know the vocabulary of script commands before setting the header / footer. Please check how to apply the script commands with examples for your need:

http://www.aspose.com/Wiki/default.aspx/Aspose.Cells/HeadersAndFooters.html

Thank you.

thank you for giving me the script commands,its almost complete.
i have my report ready for deployment.
regards.
njel

Can you fix the link please?

@mircea-ion,

Thanks for your query again. You may please refer to the following link for setting headers and footers.

Setting Headers and Footers