我使用C#将JSON文件嵌入到Excel中,如此,
string json = JsonConvert.SerializeObject(Properties); //The string contains data in JSON format
File.WriteAllText(@"C:\PJson.json", json);
Excel.Workbook book = xlApp.ActiveWorkbook;
Excel.Worksheet sheet = book.Worksheets[11];
sheet.Shapes.AddOLEObject(Filename: @"C:\PJson.json", Height: 400, Width: 400);
现在,我想编写代码从excel访问此文件并将其内容读入另一个字符串。这可能吗?