simisudevan
asked on
Crystal report Detail section line count
I have a detail section and i want to count the line number.i got this using the formula
whileprintingrecords.but my problem is my detail section a single record have multiple lines.It is not counting
Eg: Item Description Count
1 First Line 1
Second Line
Third Line
It should show 3
whileprintingrecords.but my problem is my detail section a single record have multiple lines.It is not counting
Eg: Item Description Count
1 First Line 1
Second Line
Third Line
It should show 3
ASKER
I use this formula ,but it is not counting
whileprintingrecords;
stringvar sample := replace({SP_GET_PROPOSAL_P RINT_DETAI LS;1.PRODU CT_DETAILS },chr(10), chr(13));
StringVar Array tmpArry := Split(sample,chr(13));
UBound(tmpArry);
whileprintingrecords;
stringvar sample := replace({SP_GET_PROPOSAL_P
StringVar Array tmpArry := Split(sample,chr(13));
UBound(tmpArry);
Are you sure there are chr(10) characters in the string?
mlmcc
mlmcc
ASKER
No. I checked for \n and \r.
ASKER
Is any other parse method to find the line count? My detail section content is just string.
Is the line wrap because the field is narrow or because there are characters causing a new line.
If the former there is no sure fire method of getting it since it is determined by the characters and the spacing.
mlmcc
If the former there is no sure fire method of getting it since it is determined by the characters and the spacing.
mlmcc
ASKER
If we know the number of characters per line ,can we find total lines? please give me a solution.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks i
mlmcc