Spire.XLS is a professional Excel .NET library that can be used to any type of .NET( C#, VB.NET, ASP.NET, .NET Core) application and Java (J2SE and J2EE) application.

Thu Apr 22, 2021 10:51 am

Hi in pivot after or before this comand
pt.BuiltInStyle = PivotBuiltInStyles.PivotStyleMedium10;
is possible apply font size = 8 all pivot ??

ict@sogedin.it
 
Posts: 60
Joined: Mon Jul 15, 2013 2:06 pm

Fri Apr 23, 2021 6:55 am

Hello,

Thank you for your inquiry.
Our spire.XLS supports customizing a pivot styles and defining the font size as follows. If there is any question, please feel free to write back.
Code: Select all
            string styleName = "newone";
            pt.CustomTableStyleName = styleName;
            PivotTableStyle pivotTableStyle = new PivotTableStyle(styleName);
            PivotStyle pivotStyle = workbook.CreatePivotStyle();
            pivotStyle.Font.Size = 8f;
            pivotTableStyle.Styles.Add(PivotTableElement.wholeTable, pivotStyle);
            workbook.AddPivotTableStyle(pivotTableStyle);


Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 230
Joined: Wed Apr 07, 2021 2:50 am

Wed Apr 28, 2021 7:38 am

Hi,

Greetings from e-iceblue.
How is your issue going? Did the methods we provided help you? Can you give us some feedback at your convenience? Thanks in advance.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 230
Joined: Wed Apr 07, 2021 2:50 am

Return to Spire.XLS