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

How to change font-style #58

Open
Spandana-Gajangi opened this issue Dec 15, 2017 · 0 comments
Open

How to change font-style #58

Spandana-Gajangi opened this issue Dec 15, 2017 · 0 comments

Comments

@Spandana-Gajangi
Copy link

Spandana-Gajangi commented Dec 15, 2017

I want to change header to bold and background color. How add font styles.

const workSheet = {};
workSheet.stylesXmlFile = "styles.xml";
workSheet.name = 'Invoices';
workSheet.cols = [{
  caption: 'Buyer',
  type: 'string',
  width:10
},
{
  caption: 'Invoice No',
  type: 'string',
  width: 15,
},

]
added stles.xml data from https://blogs.msdn.microsoft.com/brian_jones/2007/05/29/simple-spreadsheetml-file-part-3-formatting/
both files located in same folder.
but I get error,
can any one tell me what I'm doing wrong

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