Solved

GIF image not showing in crystal report

Posted on 2004-09-21
5
818 Views
Last Modified: 2012-06-21
i am using the code below to get an image to display on a crystal report. i then created a report using the xsd as the datasource, which created a blob field on the report. my problem is, there is no image being displayed. i can see that the dataset is holding the image after a step-through, so can anyone help?
     Dim ds As New DataSet
        Dim dt As New DataTable
        Dim row1 As DataRow
        Dim values(0) As Object
        ds.Tables.Add("Images")
        ds.Tables(0).Columns.Add("ImageColumn", GetType(Byte()))
        If Not ipNotes.Image Is Nothing Then values(0) = ipNotes.Image.ToArray
        row1 = ds.Tables(0).NewRow()
        row1(0) = values(0)
        ds.Tables(0).Rows.Add(row1)
        'ds.Tables.Add(dt)
        ds.WriteXmlSchema("c:\PSI\reportschema.xsd")
        Dim cr As New imagereport
        cr.SetDataSource(ds)
        Dim frm As New Form3
        frm.CrystalReportViewer1.ReportSource = cr
        frm.Show()
0
Comment
Question by:coletteck8
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 26

Accepted Solution

by:
Kurt Reinhardt earned 200 total points
ID: 12113015
To the best of my recollection, .gifs aren't supported.  You need to use .jpg or .bmp files.  Even when the report is viewed in HTML or DHTML, the image is converted to .jpg or .png.

Following is a link to a Business Objects KB article:

http://support.businessobjects.com/library/kbase/articles/c2013655.asp
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 12113036
Does the report display from the Crystal designer?

Is this on the development machine with Crystal loaded?

mlmcc
0
 

Author Comment

by:coletteck8
ID: 12113091
right now i'm using a crystal report viewer just to check for the image, but in production, the report will be printed directly without having the capability to view it. it displays with a date, but no image. i am using cr that comes with vs.net
0
 

Author Comment

by:coletteck8
ID: 12113240
i think there is a problem with the line that reads row1(0) = values(0) since i'm not seeing the array there at the step-through, but i do see it up until then.
0
 

Author Comment

by:coletteck8
ID: 12114915
rhinok,
you are correct. GIF is not supported. had to make it a jpeg. thanks for your help.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question