Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Data range Post Reply Post New Topic
Author Message
danielramos
Newbie
Newbie


Joined: 07 Jul 2008
Location: Portugal
Online Status: Offline
Posts: 2
Quote danielramos Replybullet Topic: Data range
    Posted: 07 Jul 2008 at 8:46am
HI.

I have 2 date fields in database(open->Green and close-->red data) and i need to build a chart by days but in a specific range.  I insert an image to explain.



How to do this in crystal?
I need to fill x axis with values in range (only). I create a field in CR and fill an array with all positions (all days between range)

global datevar array data_final;
local datevar data := {?FDate};
local numbervar inter := DateDiff("d", {?FDate}, {?FTDate});
Local NumberVar i;
local numbervar j;
local datevar aaa;
redim data_final [inter];

For i := 1 To inter Do
(
    data_final := data;
    data := data + 1;
    i= i+1;
);

But i can't use data_final in xaxis of graph? Do you have any idea to solve this problem?

I need a graphic to know how many issues are open by days between range in x-axis but i cannot use this field dates of database.

Thanks


Edited by danielramos - 07 Jul 2008 at 8:48am
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.