回复 13楼yimi020103的帖子
没有你说的属性更改即可复制。
你可以从设置图片的单元格的backgroundImage属性获取这个图片,然后添加到目标打印到sheet中。
打印设置Image的代码参考:
- C# Copy Code
- // Create PrintInfo object and set properties.
- FarPoint.Win.Spread.PrintInfo printset = new FarPoint.Win.Spread.PrintInfo();
- printset.Colors = new Color[] {Color.Green, Color.Yellow, Color.Gold, Color.Indigo, Color.Brown};
- printset.Images = new Image[] {Image.FromFile("C:\\images\\point.jpg"), Image.FromFile("C:\\images\\logo.gif"), Image.FromFile("C:\\images\\icon.jpg")};
- printset.Header = ""/fn\"Book Antiqua\" /fz\"14\" Print job for FarPoint Inc./n ";
- printset.Footer = "/g\"1\"/r/cl\"4\"This is page /p of /pc";
- // Set the PrintInfo property for the first sheet.
- fpSpread1.Sheets[0].PrintInfo = printset;
- // Print the sheet.
- fpSpread1.PrintSheet(0);
-
复制代码 |