sheetjs icon indicating copy to clipboard operation
sheetjs copied to clipboard

XLSX : Make BOLD Header : Using Angular 4

Open profile4vaibhav opened this issue 7 years ago • 5 comments

Hello Team,

I am using XLSX library to export my multiple grids into one single excel file with the help of Angular 4. I want to make the Headers of the excel BOLD, I tried it but didn't find a way. So can u just tell me how do i do that, or do we need a paid version of XLSX to achieve this.

profile4vaibhav avatar Jan 14 '19 09:01 profile4vaibhav

@profile4vaibhav

same problem, please tell me anyone answer

bhavinshiroya1994 avatar Jan 31 '19 05:01 bhavinshiroya1994

???发自我的华为手机-------- 原始邮件 --------主题:Re: [SheetJS/js-xlsx] XLSX : Make BOLD Header : Using Angular 4 (#1403)发件人:bhavinshiroya1994 收件人:SheetJS/js-xlsx 抄送:Subscribed @profile4vaibhav same problem, please tell me anyone answer

—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or mute the thread.

Alian248 avatar Jan 31 '19 09:01 Alian248

same problem.If anyone has solution to this please do share .

curiousalok avatar May 07 '19 10:05 curiousalok

i used this for loop to get to the headers :

for(var C = range.s.r; C <= range.e.r; ++C) { var address = XLSX.utils.encode_col(C) + "1"; // <-- first row, column number C if(!ws[address]) continue; debugger

    // ws[address].s=ws[address].s={
			// 	font:{
			// 		bold:true
    	// }};
    ws[address].v=ws[address].v.bold(); 
  }

this results in headers values as value I just need to encode it somehow which I am facing difficulty achieving

tayyabxatti avatar Apr 09 '20 14:04 tayyabxatti

Bold and other text and cell styling are covered in our Pro builds

SheetJSDev avatar Sep 12 '21 22:09 SheetJSDev