Click here to Skip to main content
15,891,423 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
"select PK_CourseID_VC as CourseID,CourseName_VC as CourseName,No_Of_Seats as NoOfSeats,SectionCount as TotalSections from Course_T"
from the above query,
i want to display the fields in the crystal report
the fields are
CourseID, CourseName,NoOfSeats,TotalSections as column headers
how to select it.
plz help me


thankz for u reply

i want to display the column header as CourseID

but in the database it is as PK_CourseID_VC

actually im creating a dynamic crystal report

im passing the column name
Posted
Updated 25-Jan-10 1:16am
v6

1 solution

Couldn't get what the issue is! Though let me walk through you requirement with how it can be done.

You need to display the CourseID, CourseName, NoOfSears and TotalSections in a Crystal report.

If above query is fine and returns result for you then you just need to give this query as a datasource to your crystal report and in the design view may be drag a table wiht four columns and put each field in one column. You can set the 'headers' of the column whatever you wish as that is going to be static (not driven by query)

hope it helps!
 
Share this answer
 

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