XLS error at runtime

Technical support for Spire.XLS

Moderators: iceblue support, Flash, Manager

XLS error at runtime

Postby tnero » Sun Sep 25, 2011 11:19 pm

I downloaded the demo version and included the Spire.XLS dll along with the license dll in my solution. I get the following error at runtime:

Could not load file or assembly 'Spire.XLS, Version=5.8.9.3, Culture=neutral, PublicKeyToken=7fdbc5e92357a8da' or one of its dependencies. The system cannot find the file specified.

My solution is using the 3.5 framework running on Windows 7 64bit. I'm using VS 2010.

I like what I see in the demo projects and was hoping that I can use your product to convert xls to xlsx and xlsx to xls in my own project before I buy the product.

Any assistance would be appreciated.
tnero
 
Posts: 1
Joined: Sun Sep 18, 2011 11:48 am

Re: XLS error at runtime

Postby Tina.Lin » Mon Sep 26, 2011 6:48 am

Sorry for any inconveniences caused by us and thank you for your patience with our reply.
Please try codes as below:
Code: Select all
//convert Xlsx to Xls
Workbook workbook = new Workbook();
            workbook.LoadFromFile(@"..\..\Test.xlsx", ExcelVersion.Version2007);
            Worksheet worksheet = workbook.Worksheets[0];
            worksheet.Range["A1"].Text = "Hello World";
            workbook.SaveToFile(@"..\..\Sample.xls", ExcelVersion.Version97to2003);
            System.Diagnostics.Process.Start(workbook.FileName);

//Convert Xls to Xlsx
            Workbook workbook = new Workbook();
workbook.LoadFromFile(@"..\..\Sample.xls",ExcelVersion.Version97to2003);
Worksheet worksheet=workbook .Worksheets[0];
worksheet.Range["A2"].Text = "Convert to xlsx";
workbook.SaveToFile("Test2.xlsx",ExcelVersion.Version2007);
System.Diagnostics.Process.Start(workbook.FileName );

If you still you have any problems, please contact us.
Tina
Technical Support/Developer,
e-iceblue Support Team
User avatar
Tina.Lin
 
Posts: 152
Joined: Tue Sep 13, 2011 5:37 am


Return to Spire.XLS

Who is online

Users browsing this forum: No registered users and 0 guests