467,116 Members | 1,167 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,116 developers. It's quick & easy.

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
  • viewed: 2432
Share:
1 Reply
sashi
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

Post your reply

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

Similar topics

4 posts views Thread by rszebras@hotmail.com | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.