Currently Spout instantiates itself as a XLSX writer only. There doesn't appear to be a way to change implementation on the fly, but there may be a way to always instantiate as a XLSX writer but then when exporting as a CSV, somehow switch over to a CSV writer. Not sure if it'll be possible however it's worth looking in to.
Otherwise we'll have to change instantiation.
Currently Spout instantiates itself as a XLSX writer only. There doesn't appear to be a way to change implementation on the fly, but there may be a way to always instantiate as a XLSX writer but then when exporting as a CSV, somehow switch over to a CSV writer. Not sure if it'll be possible however it's worth looking in to.
Otherwise we'll have to change instantiation.