您好,这个java,这个是我找到的.net方法:
- var sheet = workbook.Worksheets[i];
- foreach (GrapeCity.Documents.Excel.Drawing.IShape shape in sheet.Shapes)
- {
- if(shape.Type == ShapeType.Picture)
- {
- shape.PictureFormat.Url;
- shape.WidthInPixel;
- shape.HeightInPixel;
- shape.LeftInPixel;
- shape.TopInPixel;
- }
- }
复制代码 |