473,785 Members | 2,283 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Displaying photo files in a continuos form.

I'm trying to display in a continuos form some *.jpg. I have a table
with the file path, (a photo of a person). Display these photos in a
single form is very easy, just using changing some properties at the
"current" event. But if I do it in the same way in a continous form
seems to be impossible, since all images of the form change at the same
time. I need a different image for each register. ¿How can I do it?

Nov 25 '05
13 1955
"John Marshall, MVP" <la******@stone henge.ca> wrote in
news:-d************** *************** *@magma.ca:
Very childish.


Physician, heal thyself!

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 26 '05 #11
Thank you for your answer.

By reading your post i understand that i must find a control (like an
ocx one) that can display images and set its controlsource property to
the file location field. I try to find it using google, but.. i
couldn't find it. Do you know if exist such kind of control?

Thank you very much again.

Nov 28 '05 #12
"I created an app that does this and the design I used was to avoid OLE
controls, putting
pictures in the database tables and the continuous form.

Instead I created a unbound form with an appropriate number of rows for
the form size,
created controls for each row and then populate them dynamically.
Provide the user with
"Page Down/Page Up" and "Row Down/Row Up" buttons to reload the unbound
controls. Hide
rows of controls as appropriate.

Then I stored all images in a folder under the application's installed
folder and stored
just the image file name in the database tables.

This involved a lot more coding but preventing database bloating
associated with storing
images, alleviated me from dealing with OCX controls and referenced
objects and allowed me
complete freedom in how I formatted each row.
"

I supoused that this is the only good solution, but i tryied to avoid
this hard-work :(. Seem that the only solution is to use a single form
with duplicated controls and programatically change them like if they
were registers of a continuos form.

Thank you very much for your answer.

Nov 28 '05 #13
On 28 Nov 2005 04:08:56 -0800, Jo***********@g mail.com wrote:
Thank you for your answer.

By reading your post i understand that i must find a control (like an
ocx one) that can display images and set its controlsource property to
the file location field. I try to find it using google, but.. i
couldn't find it. Do you know if exist such kind of control?


You should be able to do it natively within Access. Try "OLE Object"
as DataType for a field in a table.

mike
Nov 28 '05 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
5923
by: Ken | last post by:
I have a database called autographs.mdb that is in the "XYZ" folder in the "database" folder. I have a form in the database that I want to display a photo of the celeb on. The photos are in a "graphics" folder that is on the same level as the "xyz" folder. The only way I can seem to make it work is to put the entire path including hard drive in the table (c:\database\graphics\photo.jpg). But I also want to upload the database to the web...
3
3483
by: Dalan | last post by:
At first I was not certain what could cause Access 97 from displaying most jpeg images, but not all. After further testing, it seemed that all original images of less than 275 pixels per inch or less would display, but those close to 300 pixels/inch or greater would not (MS Access cannot recognize the file format xxx.jpg). The larger, original images were scanned and saved as .bmp (at 300 dpi producing a 15MB file). Then the images were...
3
1421
by: Ian | last post by:
I have a continuos form with a Yes-No field and a text box on it, I am trying to get the Yes-No box text to turn Red when it set to Yes and Black when its set to No. I have tried stuff like: If = "yes" Then .ForeColor = 0
0
1189
by: Aravind | last post by:
Hi folks. I have a query, qryHistory, which has the following field: DaysOverdue: IIf(<Date(),DateDiff("d",,Nz(,Date())),0) I also have a form (continuos), frmHistory, which is based on qryHistory. frmHistory has a checkbox, chkReturn, which has the following code
2
1825
by: Lyn | last post by:
Hi, I am struggling to display photographs in a list format. Any help will be greatly appreciated. Originally I had attempted to store photographs as embedded OLE Objects, but had lots of trouble. I eventually abandoned this on advice from this group that this format was not reliable, not to mention that it bloated the database. Since then I have successfully been able to manage individual photographs
2
2588
by: Jeronimo Bertran | last post by:
Hello, I am using a rendering aspx page to display a database image on an Image control. When the database record is retrieved, I am saving the bitmap to a session variable for the rendering aspx to load. Here is the code on the rendering page: CODE FOR ImageForm.aspx private void Page_Load(object sender, System.EventArgs e)
4
3954
by: Lindsey Howell | last post by:
Hello, I've encountered a problem when trying to display BLOB images from a SQL database using VB.NET. This is the code which generates the error: Dim mySqlConnection As SqlConnection = New SqlConnection(connectionString) Dim mySqlCommand As SqlCommand = New SqlCommand(queryString, mySqlConnection) Dim ms as MemoryStream = New MemoryStream
8
3303
by: Jon Weston | last post by:
I'm setting up an Access2003 database with pictures. I put a bound ole picture ctrl on a form that's source is the table that contains the pictures and follow ALL the directions for embedding a picture. The ctrl in the form only displays the filename of the picture. The underlying table, when opened in table view, shows the word "package" in the field. When I double-click on either it opens the picture, but I can't get it to display. ...
1
3606
by: cumupkid | last post by:
II am trying to create a form that will allow me to upload photos to a folder in the site root directory and add the information to the mysql db at the same time. I have created two forms, one that uploads to photo to the folder in the site root diorectory. One that uploads the info to mysql database. but... When I try to upload them both ways at the same time i cant get it. I am Including code for both pages i have working. Code for...
0
9643
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10147
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10083
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9946
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5379
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4044
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2877
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.