ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 ImageenDBView question
 New Topic  Reply to Topic
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

pierrotsc

USA
497 Posts

Posted - May 10 2021 :  18:36:53  Show Profile  Reply
I use the free embedded nexus DB binary.
I use their approach to have a unit called embeddeddm created before my mainform to activate my database and tables.
I have some imageendbview that do not load the graphic anymore. the component is blank. In design time, it looks like it is showing but becomes blank when i run the app.
If i get rid of the embeddeddm unit and move the database and tables to the mainform, it works.

Is it something that changed in the imageendbview component ?
Best
Pierre

xequte

38222 Posts

Posted - May 11 2021 :  04:55:03  Show Profile  Reply
Hi Pierre

TImageEnDBView hasn't been modified in a long time, as we now favour use of TIEDBBitmap:

https://www.imageen.com/help/TIEDBBitmap.html


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

pierrotsc

USA
497 Posts

Posted - May 11 2021 :  09:03:26  Show Profile  Reply
I see. but it is not really a component you drop on the form. You have to extract the image from the database and then assign it to an imageenview. Not really what i want to do but if it is the only way i can see if i can make it work. the imageenviewDB was great.
Go to Top of Page

pierrotsc

USA
497 Posts

Posted - May 11 2021 :  11:47:48  Show Profile  Reply
Not sure really on how to make it work. i have a table with a few blob fields for my graphics. in this example i only want to retrieve the field called HorizWB_View.
fDBBitmap := TIEDBBitmap.Create(embeddeddm.DataSource_Calibration, 'HorizWB_View', 'HorizWB_View' );

Not really sure if i am supposed to replace 'image' and 'name' with my field.
when i write
ImageEnView_Horiz.SetExternalBitmap( fDBBitmap );
FreeAndNil( fDBBitmap );

Nothing is showing up.
What am i doing wrong ?
Thanks.
Go to Top of Page

pierrotsc

USA
497 Posts

Posted - May 11 2021 :  11:52:11  Show Profile  Reply
I also tried
fDBBitmap := TIEDBBitmap.Create();
fDBBitmap.DataSource := EmbeddedDM.DataSource_Calibration;
fDBBitmap.ImageBlobField := 'HorizWB_View';
ImageEnView_Horiz.SetExternalBitmap(fDBBitmap);
Go to Top of Page

xequte

38222 Posts

Posted - May 12 2021 :  01:00:31  Show Profile  Reply
Hi Pierre

Sorry, I wasn't saying that you needed to remove the TImageEnDBView, just pointing out that TImageEnDBView is unlikely to have changed since about v6 so the code issue is likely to be elsewhere.

For TIEDBBitmap, which of your database fields is the filename or name of the image? Which one is a blob field containing the image (same as the DataField property of TImageEnDBView )?





Nigel
Xequte Software
www.imageen.com
Go to Top of Page

pierrotsc

USA
497 Posts

Posted - May 12 2021 :  09:05:23  Show Profile  Reply
Nigel, i am attaching a sample project. If you do not have nexus DB, you can get the free binaries from get it.
As you can see, the imageenDBview is empty. If i move the table from the dmembedded unit to the main form, it works.
I know it used to work. not sure when something broke.
Maybe you can find out.
Best

attach/pierrotsc/2021512955_test.zip
28.21 KB
Go to Top of Page

pierrotsc

USA
497 Posts

Posted - May 16 2021 :  12:04:10  Show Profile  Reply
Nigel, have you had a chance to check with the imageenView DB is not loading ? My other DB components like combobox load fine. just not the iamgeen.
Best
Go to Top of Page

xequte

38222 Posts

Posted - May 16 2021 :  19:01:06  Show Profile  Reply
I'm sorry I haven't had a chance to look at this.

I don't have Nexus DB and can't install it on my dev machine.


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

pierrotsc

USA
497 Posts

Posted - May 16 2021 :  19:25:06  Show Profile  Reply
You can have it for free like i did. Just open getit from delphi main page and search for it. like i mentioned in an earlier message, the binaries are free.
Go to Top of Page

xequte

38222 Posts

Posted - May 16 2021 :  19:35:54  Show Profile  Reply
Hi

It's not the cost. This machine has to be very clean, so I cannot install anything unrelated onto it. Can it work without being installed? e.g. can you upload the DLLs?



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

pierrotsc

USA
497 Posts

Posted - May 16 2021 :  19:43:25  Show Profile  Reply
I have no idea if uploading the dll would work. it installs components in delphi and some binaries to edit tables and database.
Maybe it is the latest update from Nexusdb that broke it. The thing is that in design time, the image shows up but when you run the app, it does not.
Never mind, i can just put all the tables and database on the mainform. It makes the screen sloppy due to too many components.
best
pierre
Go to Top of Page

xequte

38222 Posts

Posted - May 16 2021 :  19:48:43  Show Profile  Reply
Hi Pierre

I'm sorry for the difficulty.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

pierrotsc

USA
497 Posts

Posted - May 16 2021 :  19:50:23  Show Profile  Reply
no problem. it is certainly something i am doing. used to work though.
i'll work on it. if you have not changed your code on imageendbview, then it may be nexus.
Go to Top of Page

pierrotsc

USA
497 Posts

Posted - May 20 2021 :  17:17:59  Show Profile  Reply
On the same line, i do have issues and it is not related to nexusdb. I have an imageenview with a wallpaper. The wallpaper shows up if i set the designtimeview as dvblank but when i run the app the iamgeenview is blank.
Go to Top of Page

xequte

38222 Posts

Posted - May 20 2021 :  17:24:48  Show Profile  Reply
So the wallpaper has been set at design time?

If you call ImageEnView1.Invalidate() or ImageEnView1.Update() at runtime, does the wallpaper appear?

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

pierrotsc

USA
497 Posts

Posted - May 20 2021 :  17:44:55  Show Profile  Reply
never mind. it works in the demo. got to be something i am doing or a conflicting component. the weird this is that it used to work.
Go to Top of Page

pierrotsc

USA
497 Posts

Posted - May 20 2021 :  17:51:04  Show Profile  Reply
It shows in design but goes blank in runtime. This code has not changed though.

Go to Top of Page

pierrotsc

USA
497 Posts

Posted - May 20 2021 :  18:12:12  Show Profile  Reply
I have modified the thumbnail demo. i added a small imageenview with a picture of a chain inside. you see it in design time but it goes away in runtime.

attach/pierrotsc/2021520181144_Thumbnails2.zip
85.66 KB
Go to Top of Page

pierrotsc

USA
497 Posts

Posted - May 21 2021 :  10:23:03  Show Profile  Reply
Nigel, when you have a chance, run the latest demo i uploaded. i have a small imageenview i added at the bottom left where you can see a chain wallpaper. when you run it, it's gone. i bet if i solve that i may solve my nexusdb issue too.
Thanks
Go to Top of Page

pierrotsc

USA
497 Posts

Posted - May 24 2021 :  17:28:54  Show Profile  Reply
Nigel, can you run my latest demo i posted without nexusdb and see why the wallpaper disappears in the imageenview ?
Thanks
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 New Topic  Reply to Topic
Jump To: