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

Change save xlsx file in another folder #11

Open
manpreetgill0001 opened this issue May 18, 2017 · 5 comments
Open

Change save xlsx file in another folder #11

manpreetgill0001 opened this issue May 18, 2017 · 5 comments

Comments

@manpreetgill0001
Copy link

i have to Change save xlsx file in another folder.

@acedward
Copy link
Contributor

? 🐙 ?

@manpreetgill0001
Copy link
Author

solve this problem.

@porfidev
Copy link

porfidev commented May 22, 2017

@manpreetgill0001 Options (Object) , you can write destiny path:

var options =  {
    save: true,
    sheetName: [],
    fileName: "alwayson-report-" + new Date().getTime() + ".xlsx",
    path: "./app/reports",
    defaultSheetName: "worksheet"
  }

then

        mongoXlsx.mongoData2Xlsx(toExcel, model, options, function (err, data) {
          console.log('File saved at:', data.fullPath);
          res.send(data.fileName);
        });

@manpreetgill0001
Copy link
Author

thnx elporfirio for more details.

@manpreetgill0001
Copy link
Author

elporfirio any other way to change path and fileName in this lib.
like as many excel read data and save another folder using this lib.

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

3 participants