We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Open an excel File


How can I open an excel file after create?

here my code but it dosen’t work !

private void Save()
worksheet.Name = name;
        <span style="color:green;">//Create a Stream object</span>
        <span style="color:#2b91af;">FileStream</span> fstream = <span style="color:blue;">new</span> <span style="color:#2b91af;">FileStream</span>(destinationFolder, <span style="color:#2b91af;">FileMode</span>.Open);

        <span style="color:green;">//Creating a Workbook object, open the file from a Stream object</span>
        <span style="color:green;">//that contains the content of file and it should support seeking</span>
        <span style="color:#2b91af;">Workbook</span> work = <span style="color:blue;">new</span> <span style="color:#2b91af;">Workbook</span>(fstream);
    }</pre><pre style="font-family: Consolas; font-size: 13px; background: white;"><br></pre><pre style="font-family: Consolas; font-size: 13px; background: white;">Thank you</pre></div>


Well, do you mean to say opening the final Excel file for display or directly editing purpose on the fly, for your information, Aspose.Cells is just a class library and does not offer any UI (Excel like Grid) for displaying/opening files into it. If you need this functionality i.e., to have independent Excel grid like environment/ means to do the task, you may use our Grid controls (desktop based and web based) to open the spreadsheets into grid matrix in WYSIWYG (visual) manner), please see the docs for your reference:

Thank you.