Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm using Crystal report including sub report. i have some record like followiing

Product Country
A Sri Lanka
A USA
C India

I want to print this like following

Product Country
A Sri lanka,USA
c India
(I need to use WhilePrinting Record option in Crystel report)
Please help me ASAP thank you
Posted
Updated 11-Jul-13 21:59pm
v2
Comments
berrymaria 12-Jul-13 3:38am    
Do you need a help on your query?
Deenuji 12-Jul-13 3:46am    
u need to sort your values using sql queries.....

Hello

You can use microsoft report viewer same as Crystal Report but include print option and export to excel and world and pdf and other option check this link :

part1[^]

part2[^]

part3[^]
 
Share this answer
 
Try this query, it may help you.

SQL
Select distinct ST2.Product,
     (Select ST1.Country + ',' AS [text()]
      From dbo.AA ST1
      Where ST1.Product = ST2.Product
      ORDER BY ST1.Product
      For XML PATH ('')) [Country]
From dbo.AA ST2
 
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