Skip to Content
0
Former Member
Nov 25, 2009 at 08:25 AM

Setting time multirange parameter results in unexpected ranges

30 Views

I've a report with a time parameter (Range, multiple values) to specific time ranges (09:00 - 10:00, 14:00 - 18:00, ...).

On the Delphi VCL CRXI component, I specify the values for this parameter:

    crobject.Viewer.ParamByName('TIMERANGE', '').Ranges.Clear;
		i := crobject.Viewer.ParamByName('TIMERANGE', '').Ranges.Add;
    crobject.Viewer.ParamByName('TIMERANGE', '').Ranges.Items<i>.RangeStart := '00:00:00';
    crobject.Viewer.ParamByName('TIMERANGE', '').Ranges.Items<i>.RangeEnd := '07:59:00';

		i := crobject.Viewer.ParamByName('TIMERANGE', '').Ranges.Add;
    crobject.Viewer.ParamByName('TIMERANGE', '').Ranges.Items<i>.RangeStart := '08:00:00';
    crobject.Viewer.ParamByName('TIMERANGE', '').Ranges.Items<i>.RangeEnd := '17:59:00';

		i := crobject.Viewer.ParamByName('TIMERANGE', '').Ranges.Add;
    crobject.Viewer.ParamByName('TIMERANGE', '').Ranges.Items<i>.RangeStart := '18:00:00';
    crobject.Viewer.ParamByName('TIMERANGE', '').Ranges.Items<i>.RangeEnd := '23:59:00';

All parameters accept these values with expect of the first one.

The first one becomes 08:00 - 12:11, the complete list of params after the report was printed/generated is:

08:00 - 12:11 (expected was 00:00 - 07:59)

08:00 - 17:59

18:00 - 23.59

This happens with all time-ranges between 00:00 and 00:59.

The crp32.dll file has the version 11.0.0.2491.

Is there a bugfix/workaround available?