You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exportconstformatRange=(ws,C: string,fmt: string)=>{constrange=XLSX.utils.decode_range(ws['!ref']);for(leti=range.s.r+1;i<=range.e.r;++i){/* find the data cell (range.s.r + 1 skips the header row of the worksheet) */constref=XLSX.utils.encode_cell({r: i,c: C});/* if the particular row did not contain data for the column, the cell will not be generated */if(!ws[ref])continue;/* `.t == "n"` for number cells */if(ws[ref].t!=='n')continue;/* assign the `.z` number format */ws[ref].z=fmt;}};
neither of them worked well
I think I'm missing to modify the !ref
The text was updated successfully, but these errors were encountered:
I'm following this code #885 (comment)
My usecase is to generate a template excel with only headers to be used as an import for new users
I'd like to have some collums to be of type Date, so they will properly parsed after user fill the template
this is my current approach:
I've also tried to use the code from #885 (comment)
neither of them worked well
I think I'm missing to modify the
!ref
The text was updated successfully, but these errors were encountered: