Each export method creates in memory instance of Excel.Application object, adds new destination worksheet(s) and fills it accordingly method's features. When output output xls file doesn't exist it is created. When it exists and already has worksheet with the same name as destination worksheet, the name of destination worksheet will be changed by adding incremental counter (PDG, PDG1, PDG2 etc.). When export is about to finish, it saves all the chages in output file. |