Avatar of Peter Chan
Peter Chan
Flag for Hong Kong

asked on 

Problem to DocumentFormat

How to correct this
Error	2	'DocumentFormat.OpenXml.Packaging.SpreadsheetDocument' does not contain a definition for 'WorksheetParts' and no extension method 'WorksheetParts' accepting a first argument of type 'DocumentFormat.OpenXml.Packaging.SpreadsheetDocument' could be found (are you missing a using directive or an assembly reference?)

Open in new window

due to 2nd line below?

                    SpreadsheetDocument Book0 = SpreadsheetDocument.Open(openFileDialog1.FileName, false);
                    WorksheetPart worksheetPart = Book0.WorksheetParts.First();

Open in new window

C#XML.NET ProgrammingObjective-C ProgrammingMicrosoft Development

Avatar of undefined
Last Comment
Fernando Soto

8/22/2022 - Mon