Click here to Skip to main content
15,923,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have two table "Loan" & "Member", "Member" table contain image of members which i want to show on crystal report along with all loan information about that member.

For example--

Member table
----------------
RID  MName  DOB       MPhoto
---------------------------
1    Jack   14 march   BLOB



Loan Table
------------------
RID    MName   Paydate  Installments   Status
---------------------------------------------
1      Jack    1 jan 15  1500          Paid
1      Jack    1 Feb 15  1500          Not paid
1      Jack    1 Mar 15  1500          Not paid
1      Jack    1 Apr 15  1500          Not paid



I want to show "Mphoto"(Image of member) from "Member" table and All information from loan table into one crystal report.
Help me to solve this give some ideas. thank you.
Posted
Updated 7-Jan-16 2:48am
v2
Comments
Sinisa Hajnal 7-Jan-16 9:18am    
I would re-create your query and return joined tables. If you really insist on two tables, then add them to DataSet before setting it as datasource for the report (but you will still have the problem of showing the image with correct item. Your best bet is definitely join.

1 solution

For displaying pictures from BLOB field, start here: Show images from a database in Crystal Reports[^]

For using 2 data sources, have a look here: How to load two data table to same Crystal report in c#? - Stack Overflow[^]
Note that details from Loan table should be displayed in subreport.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900