Quantcast
Channel: Open XML Format SDK forum
Viewing all articles
Browse latest Browse all 1288

cannot convert xlsm to xlsx using ChangeDocumentType

$
0
0
 i tried to use openxml's changedocumenttype to convert xlsm to xlsx file,
 but when it was done, i cannot open it , the office showed me the xlsx file was broken.

 who can tell me  why was that? this is the code:

    //convert xlsm to xlsx
    using (SpreadsheetDocument myDoc = SpreadsheetDocument.Open(xlsmPath, true))
    {
         myDoc.ChangeDocumentType(SpreadsheetDocumentType.Workbook);
    }

Viewing all articles
Browse latest Browse all 1288

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>