473,385 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Pictures in Access Reports

Access 2000

I am trying to print a report that only some of the records have
pictures. When the report prints, I do not want a blank image control
showing on the report. This project is a test bank of questions
allowing the user to create an exam by choosing the questions. Some
of the questions have pictures for reference and some don't.

I have chosen to keep the images in another folder with a test field
(QPic) that contains the complete path to the image. There is a
control in the detail section of the report (QPic) that contains this
path. The detail OnPrint section contains the following code:

If Not IsNull(Me!QPIC) Then
Me!imgEKG.Picture = Me!QPIC
End If

This works for displaying the images but if the question does not have
an image associated with it, the there is a blank image control
printed.

Since image controls can not "shrink", How can i print this report
(Exam) so that it does not have blank image controls?

Thanks

Dale
Nov 12 '05 #1
4 7239
On 26 Nov 2003 14:04:35 -0800, mt****@yadtel.net (Dale Ring) wrote:
Access 2000

I am trying to print a report that only some of the records have
pictures. When the report prints, I do not want a blank image control
showing on the report. This project is a test bank of questions
allowing the user to create an exam by choosing the questions. Some
of the questions have pictures for reference and some don't.

I have chosen to keep the images in another folder with a test field
(QPic) that contains the complete path to the image. There is a
control in the detail section of the report (QPic) that contains this
path. The detail OnPrint section contains the following code:

If Not IsNull(Me!QPIC) Then
Me!imgEKG.Picture = Me!QPIC
End If

This works for displaying the images but if the question does not have
an image associated with it, the there is a blank image control
printed.

Since image controls can not "shrink", How can i print this report
(Exam) so that it does not have blank image controls?

Dale, use its Visible property.

If Not IsNull(Me!QPIC) Then
Me.imgEKG.Visible = True
Me!imgEKG.Picture = Me!QPIC
Else
Me.imgEKG.Visible = False
End If
- Jim

Nov 12 '05 #2
"Jim Allensworth" <ji****@Notdatacentricsolutions.com> wrote in message news:<3f****************@news.west.earthlink.net>. ..
On 26 Nov 2003 14:04:35 -0800, mt****@yadtel.net (Dale Ring) wrote:
Access 2000

I am trying to print a report that only some of the records have
pictures. When the report prints, I do not want a blank image control
showing on the report. This project is a test bank of questions
allowing the user to create an exam by choosing the questions. Some
of the questions have pictures for reference and some don't.

I have chosen to keep the images in another folder with a test field
(QPic) that contains the complete path to the image. There is a
control in the detail section of the report (QPic) that contains this
path. The detail OnPrint section contains the following code:

If Not IsNull(Me!QPIC) Then
Me!imgEKG.Picture = Me!QPIC
End If

This works for displaying the images but if the question does not have
an image associated with it, the there is a blank image control
printed.

Since image controls can not "shrink", How can i print this report
(Exam) so that it does not have blank image controls?

Dale, use its Visible property.

If Not IsNull(Me!QPIC) Then
Me.imgEKG.Visible = True
Me!imgEKG.Picture = Me!QPIC
Else
Me.imgEKG.Visible = False
End If
- Jim

Thanks Jim, Great Idea!

However, this method still leaves a large blank area beneath the
question. What I need is to not have this wasted space so that the
report is more compact. There may be 5 questions that do not have
images associated with them and 5 questions that do. In this case
(with the wasted space) the report would 5 pages to print with only 2
questions per page. Without the wasted space this could be reduced to
3 pages. This would make a major difference when the exam is 100 or
150 questions.

I recall seeing a post or article about using something other than an
image control in a report to display an image. I recall that this
method did use the "shrink" property and that would resolve my issue.

However I can't locate the post or article now. It's that thing about
when you need it most, you can't find it!

Thanks
Dale
Nov 12 '05 #3
I'm not sure if this will work but if you can set the visible property
can you not set the height property?

If Not IsNull(Me!QPIC) Then
Me.imgEKG.Visible = True
Me!imgEKG.Picture = Me!QPIC
Else
Me.imgEKG.Visible = False
Me.imgEKG.Height = 0
End If

Neil
Nov 12 '05 #4
I too am having exactly the problems as the above person. Has anyone found an answer ?

I have a product database and print tailored quotations for products extracted from that database. Some of the products have pictures. I can easily say "make the image visible only if there is one" and "make the height of the image very small if there is no image and large if there is an image"

But annoyingly, even if the image height is very small and/or if it is not visible, there is a large white space left in the report the size that there would be if there was an image.

I have set the section of my report to "can shrink" and tried everything I can think of but nothing works.

So close yet so far....

Please help !

nick
Jun 28 '06 #5

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

Similar topics

3
by: Chris Minchin | last post by:
Hi there, I am a bit of a newboy to access I have a database which I wish to have pictures. for example: record one will have data and a picture, record two will have different data and a diferent...
2
by: Tony Lennard | last post by:
Hello all, I have a database of links to bitmaps, eg c:/pic/001.bmp, and I want to display the pictures in a report. Is this possible at all? Thanks for any info, Tony Lennard
1
by: Lord-Data | last post by:
Is there any reason why embedded pictures won't print from reports? They show up perfectly fine in Preview mode .. but when I print, they come out missing .. Including Black filled "Rectangle"...
12
by: Wadim Grasza | last post by:
I want to store and display (on a form or a report) multiple pictures per record in an access database. The pictures are not stored within the database. They are stored as files and the database...
1
by: telim.albert | last post by:
I have a form and a database that display the pictures of personnel but it is not binding to the reports
5
by: Ntl News Group | last post by:
I have a 97 database and want to embed (not link) a picture on a form and report The picture is just a scan of a signature, I am storing it in a table as an OLE object, then on a form I copy and...
1
by: JDW | last post by:
Now I have a picture in a Form and each record has a different picture. How can I add this pictures in a Report ? JDW Belgium
9
by: Talal Itani | last post by:
Hello, This is the first time I use a database program. I am trying to build a product database. Each product will have an ID number, a description, and a photograph. I need the table to...
0
by: George Race | last post by:
I am trying to display pictures in either ReportViewer or Crystal Reports, using VB 2005. I have the path to pictures in a Form text box that is linked to the database containing the full path to...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.