Jump to content


Photo

How to load JPEG into GraphicsColumn?


  • Please log in to reply
2 replies to this topic

#1 Frank

Frank
  • Members
  • 30 posts

Posted 08 August 2018 - 04:14 PM

Hello,

 

i try to load a .jpg-File into Nextgrid6-slide, but i cannot find the correct property.

 

With Nextgrid5, i used the following code ("G" is of type TGraphic)

if (FileExists(strFileName)) then
  begin
    G := TJPEGImage.Create;
    G.LoadFromFile(strFileName);
    gvAlbums.Cell['colImage', intRowCnt].ObjectReference := G;
  end;

But in v6, there is no .ObjectReference-Property?

 

Is there a simple way to load the image into the slide?

 

Best Regards

 

Frank



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 08 August 2018 - 08:26 PM

Hi Frank,

Now is called Data to be more in style with standard delphi controls.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 Frank

Frank
  • Members
  • 30 posts

Posted 09 August 2018 - 10:58 AM

Hi Boki,

 

this works, thank you very much :)

 

Best Regards

 

Frank






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users