回复 1楼hyqangel的帖子
可以通过代码实现,代码较长:
-
- private void AddPicture(FileInfo fileInfo, int startRow, int startColumn)
- {
- if (fileInfo == null)
- {
- return;
- }
- BitmapImage temp = new BitmapImage();
- temp.SetSource(fileInfo.OpenRead());
- temp.CreateOptions = BitmapCreateOptions.None;
- this.gcSpreadSheet1.ActiveSheet.AddPicture(this.CreatePictureName(), temp, startRow, 0.0, startColumn, 0.0, temp.PixelWidth, temp.PixelHeight);
- }
复制代码
代码路径:C:\Program Files (x86)\ComponentOne\Spread WPF-Silverlight\7.40.20132.1\Silverlight\Samples\SpreadSheetDemoExplorer.html
|