diff options
Diffstat (limited to 'Source/SPExportFileUtilities.m')
-rw-r--r-- | Source/SPExportFileUtilities.m | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Source/SPExportFileUtilities.m b/Source/SPExportFileUtilities.m index 23eb7666..e256b1be 100644 --- a/Source/SPExportFileUtilities.m +++ b/Source/SPExportFileUtilities.m @@ -180,7 +180,16 @@ { if ([file exportFileHandleStatus] == SPExportFileHandleExists) { - [file createExportFileHandle:YES]; + if ([file createExportFileHandle:YES] == SPExportFileHandleCreated) { + [file setCompressionFormat:[exportOutputCompressionFormatPopupButton indexOfSelectedItem]]; + + if ([file exportFileNeedsCSVHeader]) { + [self writeCSVHeaderToExportFile:file]; + } + else if ([file exportFileNeedsXMLHeader]) { + [self writeXMLHeaderToExportFile:file]; + } + } } } |