[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Images in a Grid

Posted on 2006-05-03
2
Medium Priority
?
184 Views
Last Modified: 2010-05-01
Hi TruGrid 7.0; and also MSFLEX grid...

I read the "previous" responses to adding an image msflex grid.. but I still don't see how that would work.  Here specifically is request:

I want to place an image into a boud/unbound grid - where I know the location of the image
(i.e. c:\somewhere\image.jpg  ) - and display that image in a grid.  Basic size of the recordset could be several thousand records... so if some has a better idea (am open to suggetsions).   We don't carry the image in the actual database; only the image filename/location.

So basically it would be nice if columns 0-X are bound and colum Y had the thumbnail displayed.  
0
Comment
Question by:ebtsup
2 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 2000 total points
ID: 16677542
Private Sub SetFlexPic(ByVal row As Integer, ByVal col As Integer, ByVal PicturePath As String)
    MSFlexGrid1.row = row
    MSFlexGrid1.col = col
    Set MSFlexGrid1.CellPicture = LoadPicture(PicturePath)
    MSFlexGrid1.Refresh
End Sub

and use il like this:
  SetFlexPic i, 0, "C:\Add.gif"


> Basic size of the recordset could be several thousand records...
bad Idea. loading so many rows (+pictures) will take much toooo long for the user to remain patient.
you should find ideas to reduce the amount of rows to show at the same time.

0
 

Author Comment

by:ebtsup
ID: 16694693
Thanks......
We are going to slow down the load to where we physically "page" - the number of records; (similar to the way we handle them in  asp.).

Thanks again
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question