Quantcast
Channel: Open XML Format SDK forum
Viewing all articles
Browse latest Browse all 1288

Problem to line

$
0
0

Hi,

How to correct
                        Excel.Worksheet sheet2 = Book0.WorkbookPart.Workbook.Descendants<Sheet>().Where(s => s.Name == "Sheet Overall");


due to
Error	2	Cannot implicitly convert type 'System.Collections.Generic.IEnumerable<DocumentFormat.OpenXml.Spreadsheet.Sheet>' to 'Microsoft.Office.Interop.Excel.Worksheet'. An explicit conversion exists (are you missing a cast?)	C:\App\WindowsFormsApplication6\WindowsFormsApplication2\Form1.cs	117	50	WindowsFormsApplication2

                        
?


Many Thanks & Best Regards, Hua Min


Viewing all articles
Browse latest Browse all 1288


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>