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

set export file name #20

Open
geyuqiu opened this issue Jul 6, 2018 · 1 comment
Open

set export file name #20

geyuqiu opened this issue Jul 6, 2018 · 1 comment

Comments

@geyuqiu
Copy link

geyuqiu commented Jul 6, 2018

Is there a way to declare in "options" the file name to be exported ?

@Sidd27
Copy link

Sidd27 commented Aug 24, 2018

You use like below

 mongoXlsx.mongoData2Xlsx(res, model, {
      'fileName': location + radius + '.xlsx'
    }, function (err, data) {
      console.log('File saved at:', data.fullPath);
    });

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

2 participants