Solved

Urgent! Print an image using data report.

Posted on 2001-07-17
4
132 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
  • 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 69

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now