Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 11 OCT 2009 10:48:41AM Marty Rosenbloom wrote:

Hi All,

I am using OI 7.2. The app that I am creating is a list of all networking partners that I have and newly introduced partners. One feature that I would like to incorporate is a photo of each person. I can convert the photo to any format (jpeg, bmp, tif, etc.) using Photoshop. What control do I use and how do I get the photo inserted?

TIA,

Marty


At 11 OCT 2009 04:41PM Ray Chan wrote:

Marty,

You can use the standard BMP control to insert your picture. We used this. However, recently we converted to using the SRP Picture Control because it gave us more flexibility. Like you we're running on OI 7.2x. (Maybe in OI 8 or 9 there are some improvements in this area.)

Here's a sample. I just imported the image shown (which I'm assuming that what you will be doing) and when I highlight the item in the EditTable, voila the picture popups in the control.

I first became interested in using picture when we attended a RoadShow in Atlanta (this is windows). Mike Ruane did a demo and shared the following code with me. Here's a copy of the code he gave me. Hope this is helpful and will get you started. I'm sure that other will jump in.

<code>

[/color][/size]     

<code> suBROUTINE IMAGE_TEST(DUMMY)

DECLARE FUNCTION msg, remove.dels

open 'IMAGES' to f_images else

  x=msg('','Unable to open IMAGES file') 
  return '' 

ENd

debug osread data from 'C:\TEMP\DOUGCHARLIEJACKATADARE.jpg' then

  data1=' 

datax=iconv(data, 'VB')

  writev datax on f_images, 'TEST1', 1 else debug 
   
  readv datax from f_images, 'TEST1', 1 else debug 
  data1=oconv(datax, 'VB') 
   
  oswrite data1 on 'c:\temp\foo.jpg' 

end

x=msg('','Done')

and here is the event script:

data=xlate('IMAGES', 'TEST1', 1, 'X')

DATA=OCONV(DATA, 'VB')

.BITMAP_1-]image=data

.Button_2-]image=data

RETURN 0[/color][/size]

HTH, Ray Chan


At 11 OCT 2009 06:00PM Barry Stevens wrote:

Cool, thanks for sharing.


At 12 OCT 2009 09:41AM Warren Auyong wrote:

The BITMAP control in Forms handles bitmaps, JPEG and GIF. Probably a few others to.

If you use a standardized image size then it is easy to use. If your image sizes very then you need to determine the dimensions and scale the control appropriately.

The IMAGEMAN32.dll has function calls to get the dimensions and you need to prototype function calls to the DLL.


At 14 OCT 2009 07:55AM Marty Rosenbloom wrote:

Ray,

My photos now appear on my forms. Thanks a lot!

Marty


At 14 OCT 2009 05:17PM Ray Chan wrote:

I'm glad you're having fun!

Ray Chan

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/242b015a2b117cca8525764c00515c96.txt
  • Last modified: 2024/01/04 21:00
  • by 127.0.0.1