Author Topic: DBExpert  (Read 316 times)

Bernt_Z

  • Newbie
  • *
  • Posts: 7
  • Karma: +1/-0
    • View Profile
DBExpert
« on: April 16, 2025, 12:44:22 pm »
Can anyone tell me howto change bitmap path to bitmaps. Currently those reside in DBEXPERT folder, I want to move the bitmap pics to another folder.

Bernt_Z

  • Newbie
  • *
  • Posts: 7
  • Karma: +1/-0
    • View Profile
Re: DBExpert
« Reply #1 on: April 16, 2025, 01:28:12 pm »
Oh, forgot, it's in the Form tab.

Jan-Erik Lärka

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 327
  • Karma: +7/-0
    • View Profile
Re: DBExpert
« Reply #2 on: April 16, 2025, 07:01:06 pm »
To create a bitmap control that displays a picture from a disk file:  

1.Click the bitmap control tool [tree and house] in the control tool box   

2.Click on the form where you want the top left corner of the bitmap to appear   

3.Set the Source attribute to =LoadPicture(`filename') where filename is the name of the file the picture is in. For example, =LoadPicture( `os2.bmp' )
____
Skip to 3. to adjust existing bitmap control and specify the path to the bitmap.
I think you may need to specify the full path or no path, but try if you can use relative path with "..\" for parent folder, something like ..\..\other\WHOOPI.BMP for parents-parent-folder-containing-folder-other-with-bitmap

Bernt_Z

  • Newbie
  • *
  • Posts: 7
  • Karma: +1/-0
    • View Profile
Re: DBExpert
« Reply #3 on: April 17, 2025, 12:10:36 pm »
Sorry, but it didn't work out
If I undetstood right, some examples:
=LoadPicture(\PICS\bildfil) relative
=LoadPicture(E:\MUSICPIC\bildfil) absolute. It doesn't matter if I use Drive letyer or not.
I apprechiate all suggestions!
Thanks, Bernt Zurcher

Bernt_Z

  • Newbie
  • *
  • Posts: 7
  • Karma: +1/-0
    • View Profile
Re: DBExpert
« Reply #4 on: April 17, 2025, 12:54:58 pm »
To clearify:
E:\DBEXPERT\  pictures location
E:\DBEXPERT\
E:\DBEXPERT\PICS\ alternative to pics location
E:\DBEXPERT\TUTORIAL\ where my application is located
E:\MUSICPIC\ where I prefer pics

Jan-Erik Lärka

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 327
  • Karma: +7/-0
    • View Profile
Re: DBExpert
« Reply #5 on: April 18, 2025, 10:25:31 am »
Save the form as a report and open the report.
Do you see the picture there?

I suspect that you only see a white background as it is?
And no change if you use =dbeLoadPicture('c:\path\2\picturefile.bmp') either?

Jan-Erik Lärka

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 327
  • Karma: +7/-0
    • View Profile
Re: DBExpert
« Reply #6 on: April 18, 2025, 11:58:38 am »
Also note that the form has to be tied to a database table.
It seem as if it only try to read the file if it also has initialized a record.
« Last Edit: April 18, 2025, 12:02:34 pm by Jan-Erik Lärka »