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
jcollado's answer is actually valid, but there is also a function (sadly not documented yet) called "save_virtual_workbook" in openpyxl.writer.excel that will take your workbook and return the workbook as a string:
from openpyxl.workbook import Workbook
from openpyxl.writer.excel import save_virtual_workbook
wb = Workbook()
print save_virtual_workbook(wb)
What you're looking for is the string returned by save_virtual_workbook()