Report Design
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Report Design
Message Icon Topic: Dynamic Report with unknown columns name Post Reply Post New Topic
Author Message
bekeer020
Newbie
Newbie
Avatar

Joined: 06 Nov 2011
Location: United States
Online Status: Offline
Posts: 3
Quote bekeer020 Replybullet Topic: Dynamic Report with unknown columns name
    Posted: 06 Nov 2011 at 10:58pm
Hi All
 
I have stored procedure that return set of columns depend on date passed to stored procedure
 
If user pass for example: 1/1/2011
 
the stored procedure return 10 columns first column name is 1/1/2011 and second column name is 2/1/2011 and third column name is 3/1/2011 and .. until 10th column name is 10/1/2011 
 
Note : column name is different depend on passed date value
 
now how i can design cretal report in VS.Net to solve like this problem
 
Can any one help me
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 08 Nov 2011 at 4:26am
don't name your columns like that...
use month1/month2 etc
 
have a column in your stored proc that reports the string to be displayed.
 
this way, the column names are always the same, and CR will be happy
 
HTH
IP IP Logged
bekeer020
Newbie
Newbie
Avatar

Joined: 06 Nov 2011
Location: United States
Online Status: Offline
Posts: 3
Quote bekeer020 Replybullet Posted: 14 Nov 2011 at 12:28am
Thank you i already solve it
 
i use temp table and change columns name
 
 
Thank you
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.047 seconds.