I\'m building OpenPyXL into an application that expects a string containing the content of the excel file, for it to write via file stream.
From my investigation into th
What about using a StringIO
object to save the contents of the file:
from openpyxl.workbook import Workbook
from StringIO import StringIO
output = StringIO()
wb = Workbook()
wb.save(output)
print output.getvalue()
The string you're looking for is what is being printed in the last line of this example.