CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: OLE object

  1. #1
    Join Date
    Aug 1999
    Posts
    45

    OLE object

    Hi,
    I create Access table MyTable, there're 2 fields:
    VendorName (Text)
    VendorLogo (OLE Object)

    From VB, I want to load the table data into textbox and picture control:
    txtVendorName = rsVendor!VendorName
    picVendorLogo = Loadpicture(rsVendor!VendorLogo)

    ----> The Loadpicture command fails, I guess I have to pass the
    filename string of my bitmap, but I donn't know how? Any idea?

    Thanks




  2. #2
    Join Date
    Nov 1999
    Location
    US NJ
    Posts
    113

    Re: OLE object

    I think you have to write the string to a temporary file, and loadpicture to the image control to display it.

    I had same question came a cross before and a programmer wrote me that you have to write the string in a temp file and then call this file for LoadPicture event.

    I don't know if this will ring a bell.

    Leo



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured