Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2012
    Posts
    2

    Unanswered: Embed a picture using Code

    I'm trying to setup a button where someone can embed a picture in a form. The problem I have (at least this case) is that I would like to have the button open up a windows search box, the operator select the file they want and have it automatically drop the file path in the Picture field in the design of the form. Any ideas?

  2. #2
    Join Date
    Nov 2004
    Location
    out on a limb
    Posts
    13,692
    Provided Answers: 59
    forget what its called but you can call up some of the standard windows dialogs to do that.

    store the URL to the file not the image itself.
    I'd rather be riding on the Tiger 800 or the Norton

  3. #3
    Join Date
    Jan 2012
    Posts
    2
    I appreciate the reply, but I'm not sure how that helps.

  4. #4
    Join Date
    Nov 2004
    Location
    out on a limb
    Posts
    13,692
    Provided Answers: 59
    well yoiu use a standard windows dialog to display a drive / file object
    you specify what file types are visible int eh file dialog
    you examine the users respnse to see if they have selected an image file to be inserted into an image control
    if so then you insert the image into the control

    having found the image you then store the URL to that image in the DB so in the forms on current event you set or unset the image as required.
    I'd rather be riding on the Tiger 800 or the Norton

Posting Permissions

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