Dim imgLogo As GrapeCity.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图片是可以的,请问还支持哪些图片格式?
|