We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Cannot Open Storage Exception

Thread ID:

Created:

Updated:

Platform:

Replies:

110528 Aug 9,2013 02:50 AM Aug 19,2013 12:18 AM Windows Forms 3
loading
Tags: XlsIO
Santhosh A V
Asked On August 9, 2013 02:50 AM

Hi,

I have a problem opening the excel template document , which uses the CreateWorkBookUsingTemplate(String TemplateLocation) method to create the workbook using the template format.

We are using 3.3.0.0 version of syncfusion & in that we are using 3.302.0.0 version of syncfusion assemblies which are built on .NET Framework 2.0.The problem is , earlier our excel template format was  of type .xlt , where without any problem was getting opened.But now we want to upgrade from .xlt to .xltm version.We are hardcoding the entire template location in code as below.

Using Syncfusion.ExcelRW;

            ExcelEngine excelEngine = new ExcelEngine();
            excelEngine.ThrowNotSavedOnDestroy = false;
           
            IWorkbook myWorkBook = null;
            IApplication application = excelEngine.Excel;

 myWorkBook =                ExcelUtils.CreateWorkBookUsingTemplate(System.Windows.Forms.Application.StartupPath + "\\" + "Template.xltm");    //////
Here in this statement it is throwing th exception "Cannot open storage"..The same statement , works if I change the extension of template to .xlt.

We are actually using the .xlt template & saving it as .xltm using 2007 or 2010 excel & then trying to open in our code.

Kindly let us know your valuable suggestions

Regards,
Santhosh Ambale Venkatesh



Rajesh A [Syncfusion]
Replied On August 12, 2013 07:53 AM

Hi Santhosh,

Thank you for using the Syncfusion products.

Currently we don’t have the support for *.xlt to *.xltm conversion. We are requesting you to create a new direct-trac incident and Request for issue in that. And also your assemblies’ version seems to be very old. So, we strongly recommend you to upgrade your product to our latest version, which resolves major fixes and enhancements.

Direct-Trac Link: Login

You can download the latest version from the following link.

http://www.syncfusion.com/downloads/latest-version

Kindly let us know if you need any clarification.

Regards,

Rajesh A


Santhosh A V
Replied On August 14, 2013 02:10 AM

Thanks for the quick reply Rajesh.I will do as per your suggestion & will come back for clarifications , if any

Regards,
Santhosh Ambale Venkatesh


Rajesh A [Syncfusion]
Replied On August 19, 2013 12:18 AM

Hi Santhosh,

   Thank you for your update.

  Please let us know if you have any clarification.

Thanks,
Rajesh.A

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;