Con Aspose.Cells, puoi aprire file, ad esempio per recuperare dati o usare un modello di progettazione per accelerare lo sviluppo. Aspose.Cells può aprire una vasta gamma di file diversi, come fogli di calcolo Microsoft Excel (XLS, XLSX, XLSM, XLSB), CSV o file delimitati da tab.
Apertura di un file tramite un percorso
Gli sviluppatori possono aprire un file Microsoft Excel usando il suo percorso sul computer locale specificandolo nel costruttore della classe Workbook. Passare il percorso come stringa nel costruttore. Aspose.Cells rileverà automaticamente il tipo di formato del file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
È anche possibile aprire un file Excel come stream. Per farlo, utilizzare una versione sovraccaricata del costruttore che accetta l’oggetto Stream che contiene il file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters