Skip to content
Advertisement

Can’t write xlsx file to another folder

Please help me, the programmer who made this software is gone and now I’m in trouble: the program opens an xlsx file, inserts some data inside and saves it with another name, I need this file to be saved in a specific directory, can anyone help me? Thank you!

JavaScript

Advertisement

Answer

In wb.save (filename = self.filename) you can provide any path you need in place of self.filename.

The filename that it gets is defined in the parse method, specifically on following lines:

JavaScript

From there, you can prepend the contents of self.filename with the desired path. Like this for example:

JavaScript

or

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement