本帖最后由 Alice 于 2017-4-24 13:51 编辑
首先你需要添加一个图片,C1Report只是负责把你已有的图片添加到报表
图片可以通过代码添加,代码参考:
- //Add Image field to the report
- Field Image1;
- Section s1 = C1WebReport1.Report.Sections[SectionTypeEnum.PageFooter];
- Image1 = s1.Fields.Add("Image1", "", 50, 50, 4440, 1480);
- Image1.Width = 4440;
- Image1.Height = 1480;
- //Image1.BackColor = System.Drawing.Color.Blue;
- Image1.PictureScale = PictureScaleEnum.Scale;
- Image1.Picture = _tmpImage;
复制代码 |