vinothtl Posted August 17, 2009 Report Share Posted August 17, 2009 Hi, I am using Chartfx.stripe to stripe the weekends of the month, but it is not working properlly when the months are from mulitple years. Below is the code which i used to stripe the weekends. Chartfx1 .OpenDataEx COD_STRIPES, UBound(dateWeekEnd), 0 For lngWeekEndCounter = 0 To (UBound(dateWeekEnd) - 1) Chartfx1.Stripe(intWeekEndCounter).Axis = AXIS_X Chartfx1 .Stripe(intWeekEndCounter).From = dateWeekEnd(lngWeekEndCounter) - 0.5 Chartfx1.Stripe(intWeekEndCounter).To = dateWeekEnd(lngWeekEndCounter) + 0.5 ' Set the Stripe Color. Chartfx1.Stripe(intWeekEndCounter).Color = RGB(210, 210, 210) intWeekEndCounter = intWeekEndCounter + 1 Next lngWeekEndCounter Chartfx1.CloseData COD_STRIPES Erase dateWeekEnd() For example if the months are from 2008 and 2009, it stripes only the weekends in the months of 2008,nothing is happening in the weekends of the months in 2009. Please help me out from this issue!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.