Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

width attribute not working #57

Open
Spandana-Gajangi opened this issue Nov 28, 2017 · 0 comments
Open

width attribute not working #57

Spandana-Gajangi opened this issue Nov 28, 2017 · 0 comments

Comments

@Spandana-Gajangi
Copy link

column width is not increasing. here I'm attaching sample code and output file.

let workSheet={}
//workSheet.stylesXmlFile = "styles.xml";
workSheet.cols=[{
caption:'key',
type:'string',
width:50,
},
{
caption:'buyerKey',
type:'string',
width:100,
},
{
caption:'buyerName',
type:'string',
width:100,
},
{
caption:'invoiceNumber',
type:'string',
width:500,
},
{
caption:'amount',
type:'string',
width:100,
},
{
caption:'id',
type:'string',
},
{
caption:'originalDueDate',
type:'string',
width:200,
},
{
caption:'generatedAtUtc',
type:'string',
width:200,
},
{
caption:'requestStatus',
type:'string',
width:500,
},
];
let values = [];
data.forEach(value => {
values.push([value.key,
value.buyerKey,
value.buyerName,
value.invoiceNumber,
Math.round(value.amount).toString().replace(/(\d)(?=(\d\d)+\d$)/g, '$1,'),
value.id,
dateFormat(value.originalDueDate, 'dd-mmm-yy'),
dateFormat(value.generatedAtUtc, 'dd-mmm-yy'),
value.requestStatus,
]);
});
workSheet.rows=values;
download19.xlsx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant