def build(self): """Builds and saves the excel file""" # Save the excel file self.book.save(self.fileName) shutil.move(self.fileName, self.EXPORT_DIRECTORY+'/'+self.fileName) notificationText = "Data has been exported successfully to the Excel file " + self.fileName + " in the " + self.EXPORT_DIRECTORY + " folder." createNotification("Export to Excel", notificationText)
def build(self): """Builds and saves the excel file""" # Save the excel file self.book.save(self.fileName) shutil.move(self.fileName, self.EXPORT_DIRECTORY + '/' + self.fileName) notificationText = "Data has been exported successfully to the Excel file " + self.fileName + " in the " + self.EXPORT_DIRECTORY + " folder." createNotification("Export to Excel", notificationText)
def save(self, fileName): """Saves the document""" self.fileName = fileName self.document.save(fileName) shutil.move(self.fileName, self.EXPORT_DIRECTORY+'/'+self.fileName) notificationText = "Data has been exported successfully to the Word file " + self.fileName + " in the " + self.EXPORT_DIRECTORY + " folder." createNotification("Export to Word", notificationText)
def save(self, fileName): """Saves the document""" self.fileName = fileName self.document.save(fileName) shutil.move(self.fileName, self.EXPORT_DIRECTORY + '/' + self.fileName) notificationText = "Data has been exported successfully to the Word file " + self.fileName + " in the " + self.EXPORT_DIRECTORY + " folder." createNotification("Export to Word", notificationText)