Build 3.5.0.126 of xlsgen adds OpenFromMemoryEx() to the in-memory scenarios.
OpenFromMemory(), which was available so far, was not allowing the Excel file format identifier or Output file format identifier be set independently at input and output.
OpenFromMemoryEx() lets you do that exactly. For instance you can open an XLSX Excel file from a memory buffer and create a PDF memory buffer as output.