GrapeCity.ActiveReports.Document.Drawing.Image 支持哪些图片格式
Dim imgLogo AsGrapeCity.ActiveReports.SectionReportModel.Picture....
imgLogo.Image = System.Drawing.Image.FromFile("C:\\img\\test.tiff")
使用tiff格式图片报如下错误:
System.Exception: Error running report ---> System.Exception: The specified color space (PhotometricInterpretation = 5) is not currently supported in GcTiffReader. at GrapeCity.Documents.Imaging.TiffFrame.b() at GrapeCity.Documents.Imaging.TiffFrame.ToGcBitmap(GcBitmap bmp, Boolean cloneExif) at GrapeCity.Documents.Imaging.GcBitmap.Load(Stream stream, Int32 frameIndex, Nullable`1 imageRect) at GrapeCity.ActiveReports.Core.Document.Drawing.Gc.I.?.?(Stream ?) at GrapeCity.ActiveReports.Core.Document.Drawing.Gc.GcCanvasItemRenderer.ToGcImage(MemoryStream ms) at GrapeCity.ActiveReports.Core.Document.Drawing.Gc.GcCanvasItemRenderer.Render(CanvasItem item) at GrapeCity.ActiveReports.Core.Document.Page.Render(ICanvasItemRenderer renderer) at GrapeCity.ActiveReports.Core.Export.Pdf.Section.PdfExport.Export(IEnumerable`1 pages, BookmarksCollection bookmarks, IDictionary`2 pagesMap, IDictionary`2 resources, PdfSettings settings) at GrapeCity.ActiveReports.Core.Export.Pdf.Section.PdfExport.Export(IEnumerable`1 pages, BookmarksCollection bookmarks, IDictionary`2 pagesMap, Stream stream, PdfSettings settings) at GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport.ExportCore(SectionDocument document, Stream stream, String pageRange) at
我改用png图片是可以的,请问还支持哪些图片格式?
问题描述:
AR17区域报表图片支持的数据类型。
问题解决:
您好,图片组件支持的格式如下:持 Base64 字符串、Byte[]、BMP、JPG、JPEG、JPE、GIF、PNG、EMF、WMF 和 SVG 格式。
更具体的您可以在我们的帮助文档中查看:
https://developer.mescius.com/activereportsnet/docs/latest/online/picture.html
多谢。 :loap1:
页:
[1]