Worksheet.Copy not working between Workbooks


Worksheet.Copy is not working
Also fails with version .6, and .7

It worked just fine in version
I have attached the template file I am using.

Here is the code to generate this error.

Workbook excelWorkbook0 = new Workbook();
Workbook excelWorkbook1 = new Workbook();

excelWorkbook1.Save(@"C:\Final.xls", FileFormatType.Default);

This code works just fine

Workbook excelWorkbook0 = new Workbook();

Worksheet ws0 = excelWorkbook0.Worksheets[0];
Worksheet ws1 = excelWorkbook0.Worksheets[1];


excelWorkbook0.Save(@"C:\Final.xls", FileFormatType.Default);


Please try this attached v4.0.2.9.


This works in correcting this problem but the problem you fixed with version is back.

The example is in my post 56892. Your post of 56897 sent to me was its correction.

Thanks James


Sorry, my bad.

I was using the wrong .dll.

It works just fine.

Thanks for your help. James