display images from digital archive

Started by Candida F., April 22, 2010, 11:46:55 AM

Previous topic - Next topic

Candida F.

hello everyone,


the idea is to have scanned images of documents displayed on the user's monitor.

i've checked bdl user guide version 2.11 and found instructions on page 633 on how to display images.
so i created a form with a static image area and a dynamic image area to test both possibilities and on the .profile, i've defined a path were images are stored. however when i try to run the program using instruction 'display image' nothing happens.

i've tried to use .bmp, .jpg, .pdf, .png type of images and nothing worked.

can someone assist on this?

thanks,
Candida

Sebastien F.

Candida,

What are the exact versions of GDC / FGL you are using?

You should read this:

https://4js.com/techdocs/genero/fgl/devel/DocRoot/User/Mig0004.html#searching-image-files

Is the demo FGLDIR/demo/Widgets/ImageList working with a remote GDC?

Can I suggest that you try latest FGL 2.21 + GDC 2.22 from our download site?

Seb

.

I would also suggest to check SIZEPOLICY attribute for your images.
If you let it as default ("INITIAL"), the image widget can be very small if there is no initial image, and won't grow if you change the picture afterwards.

Using SIZEPOLICY=FIXED with HEIGHT/WIDTH or DYNAMIC is maybe a better solution.

Stefan S.

in the perfile:

....

      grid
      {
       [bild                ]
       [                    ]
       [                    ]
       [                    ]
       [                    ]
      }
      end --grid

...
image bild = formonly.lo_bild, sizepolicy = fixed,
             HEIGHT=180 PIXELS, WIDTH=240 PIXELS, autoscale;

4gl-code

...
let lo_x = "abc.jpg"
let lo_bild = "Q:/Produktbilder/", lo_x
display by name lo_bild
...

this works fine with out Application (2.11)

hth Stefan

Sebastien F.

May I suggest that you turn on GUI debug with:

$ FGLGUIDEBUG=1
$ export FGLGUIDEBUG

=> open the GDC debug console, run your program and send both fglrun stderr and GDC debug output to support@4js.com.

Seb

Candida F.

i was able to open the document as an image!

thanks everyone for the useful tips :)


Sebastien F.


Candida F.

one problem was that we transfered the file as ASCII (default setting) instead of binary and the other had to do with the file extension. the instruction said that the extension was not needed but we could only open the image with the whole name (ex: test_image.bmp).