473,418 Members | 1,749 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,418 software developers and data experts.

display OLE object stored in database to visualbasic form using code

i have started a small project in visual basic regarding the stock details in our textile company.It has details like product id,product name,no of items,product picture etc.. so i have created a table called "products".I have stored the picture of the each product as a OLE object(Bitmap Image) in product table.I tried viewing my entire "product" table in Visual basic form by using data control.I used OLE control to view the products picture.till this ihave no problem.

my problem starts when there is need to view the "product" table thru coding rather then using datacontrol.the neccesity occurs when u have to view a particular product.at this time ii cannot find coding to display OLE object in the database to OLE control or any other controls(image and picture control) in the visual basic form.Also when i need to add new product in the existing stock there occurs a neccesity to store the OLE object(ie "product picture" selected from computer directory) displayed in the OLE control to the corresponding field in the "product" table.

hope i am clear about what i have explained.could you please help me to overcome this trouble.
Nov 6 '06 #1
1 2633
sashi
1,754 Expert 1GB
i have started a small project in visual basic regarding the stock details in our textile company.It has details like product id,product name,no of items,product picture etc.. so i have created a table called "products".I have stored the picture of the each product as a OLE object(Bitmap Image) in product table.I tried viewing my entire "product" table in Visual basic form by using data control.I used OLE control to view the products picture.till this ihave no problem.

my problem starts when there is need to view the "product" table thru coding rather then using datacontrol.the neccesity occurs when u have to view a particular product.at this time ii cannot find coding to display OLE object in the database to OLE control or any other controls(image and picture control) in the visual basic form.Also when i need to add new product in the existing stock there occurs a neccesity to store the OLE object(ie "product picture" selected from computer directory) displayed in the OLE control to the corresponding field in the "product" table.

hope i am clear about what i have explained.could you please help me to overcome this trouble.
Hi there,

Run a simple search on thescripts, use "BLOB" OR "Long binary" as keywords. I have seen and answered few questions related to above question. Good luck & take care.
Nov 7 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

19
by: dmiller23462 | last post by:
Hi guys....I have absolutely NO IDEA what I'm doing with Javascript but my end result is I need two text boxes to stay hidden until a particular option is selected....I've cobbled together the...
3
by: Ken | last post by:
I have a database called autographs.mdb that is in the "XYZ" folder in the "database" folder. I have a form in the database that I want to display a photo of the celeb on. The photos are in a...
1
by: Dalan | last post by:
I would like to incorporate a feature in an Access 97 database that would display popup messages at predetermined times in the future - say every three months. This would be applied to several of a...
12
by: Wadim Grasza | last post by:
I want to store and display (on a form or a report) multiple pictures per record in an access database. The pictures are not stored within the database. They are stored as files and the database...
3
by: Sandi | last post by:
I have a simple problem: I have an Access database (images.mdb) that has 2 columns: one is the id if the picture (an integer) and one (column named picture) is a field of type OLE Object which...
4
by: rszebras | last post by:
I inherited a database (as a novice at Access) and need to modify it to make it more efficient, i.e., the assignment form needs to autopopulate with the client's name, address, phone number, etc.,...
35
by: Chris | last post by:
Hi, I tried to create a class which must change the propety 'visible' of a <linktag in the masterpage into 'false' when the user is logged. But i get the error: "Object reference not set to an...
2
by: krajah | last post by:
Need Help Here....... I'm using visual C#: How to insert the value that user have entered combobox and click button.The value will sent into database.This is in form1. In form2,if click button...
2
by: pozze | last post by:
Hi, I need to display images and other record information retrieved from an SQL 2005 database in a datagrid on a web page. I'm coding in VB .net I have recently changed over from VB ASP and i'm...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.