Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: variable number of columns Post Reply Post New Topic
Author Message
alef
Newbie
Newbie


Joined: 20 Aug 2009
Online Status: Offline
Posts: 3
Quote alef Replybullet Topic: variable number of columns
    Posted: 20 Aug 2009 at 7:46am
I have a MS Sql Server stored procedure that returns a variable number of columns, is it possible to create a report that will show the stored procedure results.
The desired output of the report is:

Name    Contest1      Contest2    Contest3
aaa       50 pt            45pt            40pt
bbb       48 pt            41pt            38pt


These are the points of each runner in the different contests.
The SP is using dynamic sql to create a crosstab. There is a lot of logic in it to calculate the points so I don't want to redo the same work in Crystal Reports. The purpose is to reuse the result of the SP, but I don't know in advance how many contests there will be. How can you do this is in Crystal Reports. So I just want the same output as the SP to be displayed in Crystal Reports.




IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 20 Aug 2009 at 12:51pm
I am pretty sure this is not doable. The columns have to be static up on report design.
IP IP Logged
alef
Newbie
Newbie


Joined: 20 Aug 2009
Online Status: Offline
Posts: 3
Quote alef Replybullet Posted: 21 Aug 2009 at 7:03am
I've seen the following answer (http://forums.asp.net/t/1210635.aspx) :  You have to use the .XSD file to communicate your SQL Table to Crystal report.
Is it possible to explain a little bit more if this can be a solution to the problem?

IP IP Logged
alef
Newbie
Newbie


Joined: 20 Aug 2009
Online Status: Offline
Posts: 3
Quote alef Replybullet Posted: 24 Aug 2009 at 5:52am
It's been a while... anyone?
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.