Solved

Urgent! Print an image using data report.

Posted on 2001-07-17
4
138 Views
Last Modified: 2012-08-14
I have a database that contain staff records.  One of the field is a string data type (path) that refer to the image (staff photo) in hard disk.

My problem is, how to print out the image when i print the staff information?

In same report, another problem is one staff/teacher, can teach more than one subject. I stored all the subjects that a staff teach in a table called "subjects".  How to print it how when i print the staff information.  I link it with staff ID.

Thanks first for your help.  Please give me the code within this two days.


0
Comment
Question by:yongyih
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 18

Accepted Solution

by:
bobbit31 earned 100 total points
ID: 6290120
you could do something like:

set DataReport1.Sections("Section1").Controls("Image1").Picture = LoadPicture ("<path to picture>")

for the second part, use a sql query something like:
select staff.*, subjects.* from staff inner join subjects on staff.staffID = subjects.staffID
0
 
LVL 2

Author Comment

by:yongyih
ID: 6292971
I give you the marks first.   But, if i have problems with this question again, please help me, ok. ^^
Thanks.
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 6357959
Why this question is still open? Points should have been given to bobbit31.
0
 
LVL 2

Author Comment

by:yongyih
ID: 6967414
Sorry.. just sent the commend but forgot to accept the commend as answer. =P
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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

735 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