- OpenFileDialog dlgOpen = new OpenFileDialog();
- if (dlgOpen.ShowDialog() == System.Windows.Forms.DialogResult.OK)
- {
- FarPoint.Win.Spread.DrawingSpace.RectangleShape shape1 = new FarPoint.Win.Spread.DrawingSpace.RectangleShape();
- shape1.BackgroundImage = new Picture(Image.FromFile(dlgOpen.FileName));
- shape1.BackgroundImage.Style = RenderStyle.Stretch;
- [color=Red]shape1.Top = 20;
- shape1.Left = 60;[/color]
- shape1.Width = 300;
- shape1.Height = 300;
- shape1.CanSize = FarPoint.Win.Spread.DrawingSpace.Sizing.HeightAndWidth;
- fpSpread1.ActiveSheet.AddShape(shape1);
- }
复制代码
添加图片时 有没有具体冲那一行哪一列开始添加图片的 |
|