Solved

Displaying an image in an ms access report based upon data in a linked MS SQL column (type image)

Posted on 2006-11-08
4
273 Views
Last Modified: 2013-11-28
I have probably missed something really obvious but having spent the last couple of hours trying I could do with some help!

Basically I have a MS Access 2000 database which has a linked table to a MS SQL Server table containing a field of data type image which I want to display on a report in MS Access.

The images within the MS SQL Server table are from a third party system and I do not have access to the original image files.

When I open the linked MS Access table it shows the image data as OLE object.

I have tried using an image object on my report and setting the picturedata property but get an error ("The bitmap you specified is not a device-independent bitmap (.dib) format.

I have also tried using an OLE object but could not see how to set it's properties to use the data contained within the table.

Please can anyone help....(I am meant to be producing a report ASAP with the images in!)
0
Comment
Question by:wilmslowhighcheshire
  • 2
  • 2
4 Comments
 
LVL 7

Expert Comment

by:Jonathan Kelly
ID: 17897617
might be worth checking this out

http://support.microsoft.com/default.aspx/kb/255632
0
 

Author Comment

by:wilmslowhighcheshire
ID: 17897853
Thank you,

Having looked at this, it would at least provide me with a method for creating a file from the image data stored in SQL and then to set the picture property for an image to this file.

It just worries me that as the report could potentially be required to display upto 60 images I would be writing rather a lot of temporary files.
0
 
LVL 7

Accepted Solution

by:
Jonathan Kelly earned 500 total points
ID: 17899343
Hi there,

I dont know if there is another way to achieve this.


I think you need to have an ole server installed in order to deal with the images.

I would try importing a couple of records into an access database. Have a look at the BLOB field - what does it say ?

0
 

Author Comment

by:wilmslowhighcheshire
ID: 17904822
Thank you for this.

The BLOB field says that it is an OLE object.

I think to make my life a little easier I will go with your first solution but write a separate app to store all the images as files in a one-off process and then point the reporting app to these instead.
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

863 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

19 Experts available now in Live!

Get 1:1 Help Now