Solved

GIF image not showing in crystal report

Posted on 2004-09-21
5
768 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
  • 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 100

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
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…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

911 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now