Solved

Urgent! Print an image using data report.

Posted on 2001-07-17
4
135 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 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Suggested Solutions

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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 process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

791 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