Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.

Wed Feb 05, 2014 5:11 pm

Hi
Is possibile Wrap text in a column value pivot ??
you are the best
thanks

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

Fri Feb 07, 2014 9:24 am

Hi,

I'm afraid that it's impossible to set the WrapText style of the column at present.
But I have added it as a new feature to the schedule of our dev team. If we have any progress, we will tell you.

Thanks and Regards,
Harry
Technical Support / Developer,
e-iceblue Support Team
User avatar

harry.support
 
Posts: 180
Joined: Mon Nov 08, 2010 3:11 pm

Fri Feb 07, 2014 10:50 am

I'm sorry I meant only the header of the column
this is possible?
thanks

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

Sat Feb 08, 2014 3:55 am

Hello,

To wrap text in the header of the column, please refer to the following code:
Code: Select all
         Workbook workbook = new Workbook();
            workbook.LoadFromFile("sample.xlsx");
            Worksheet worksheet = workbook.Worksheets[0];

            //set the header of column "A1" WrapText
            worksheet.Range["A1"].Style.WrapText = true;
            //set the header of column "C1" WrapText
            worksheet.Range["C1"].Style.WrapText = true;
            workbook.SaveToFile("result.xlsx");

            System.Diagnostics.Process.Start("result.xlsx");


And you can check the screenshots in the attachment.
If there are any questions, welcome to tell us.

Regards,
Benjamin
E-iceblue support team
Attachments
wrap2.jpg
wrap2.jpg (21.73 KiB) Viewed 6235 times
wrap1.jpg
wrap1.jpg (19.69 KiB) Viewed 6235 times
User avatar

Benjamin Du
 
Posts: 82
Joined: Thu Jul 25, 2013 2:38 am

Sat Feb 08, 2014 1:48 pm

Hi, but i want wrap in HeadColumn Table Pivot
this not is bad for this case,
thanks

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

Mon Feb 10, 2014 2:49 am

Hi,

Thanks for your feedback.

Sorry that it's impossible to set the WrapText style in HeadColumn Table Pivot at present.

If there are any questions, welcome to get it back to us.

Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Thu Oct 18, 2018 5:35 pm

I am using free spire.net.I am trying to make wrap text in pivot table header column. How can I do that.I need your help
Thanks

pradhan.subhankar@gmail.com
 
Posts: 8
Joined: Fri Oct 12, 2018 12:42 am

Fri Oct 19, 2018 6:39 am

Hello,

Thanks for your inquiry.
Please try the following code to set the format of cells where the header columns of pivot table locates. If it doesn't help, please provide your input Excel file as well as your desired output file for our reference.
Code: Select all
sheet.Range["D3"].IsWrapText = true;

Sincerely,
Nina
E-iceblue support team
User avatar

Nina.Tang
 
Posts: 1182
Joined: Tue Sep 27, 2016 1:06 am

Tue Oct 23, 2018 9:20 am

Hi,

Greetings from E-iceblue!
How is your issue going?
Thanks in advance for your valuable feedback and time.

Sincerely,
Nina
E-iceblue support team
User avatar

Nina.Tang
 
Posts: 1182
Joined: Tue Sep 27, 2016 1:06 am

Wed Feb 08, 2023 5:54 pm

Nes of tihs case ??

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

Thu Feb 09, 2023 2:34 am

ict@sogedin.it wrote:Nes of tihs case ??


Hello,

Thanks for your following-up.
Now, you can set “wrap text” to true for the header of pivot column, you can refer to the following code.

Code: Select all
//The "F10" is the location of the header of pivot column
            sheet.Range["F10"].IsWrapText= true;


Sincerely
Abel
E-iceblue support team
User avatar

Abel.He
 
Posts: 860
Joined: Tue Mar 08, 2022 2:02 am

Return to Spire.XLS

cron