Пример #1
0
 /// <summary>
 /// Create a SpreadsheetMLPackage from an IO stream
 /// </summary>
 /// <param name="path"></param>
 /// <returns></returns>
 /// <exception cref="Docx4JException">something went wrong</exception>
 public static SpreadsheetMLPackage createSpreadsheetMLPackage(Stream stream)
 {
     return(SpreadsheetMLPackage
            .load(new ikvm.io.InputStreamWrapper(stream)) as SpreadsheetMLPackage);
 }
Пример #2
0
 /// <summary>
 /// Create a SpreadsheetMLPackage from the file at path
 /// </summary>
 /// <param name="path"></param>
 /// <returns></returns>
 /// <exception cref="Docx4JException">something went wrong</exception>
 public static SpreadsheetMLPackage createSpreadsheetMLPackage(string path)
 {
     return(SpreadsheetMLPackage
            .load(new java.io.File(path)));
 }