?
Solved

GIF image not showing in crystal report

Posted on 2004-09-21
5
Medium Priority
?
841 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 800 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

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…
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses
Course of the Month12 days, 19 hours left to enroll

777 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