Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
I used formula as indexbuild syntax as below for generating table of content........

WhilePrintingRecords;
shared StringVar Array catArry;
shared NumberVar Array pageArry;
IF NOT (GroupName({Ledger.ACCODE1})& "-" & mid({Ledger.name1},1,100) IN catArry) THEN (
Redim Preserve pageArry[UBound(pageArry) + 1];
pageArry[UBound(pageArry)] := PageNumber;
Redim Preserve catArry[UBound(catArry) + 1];
catArry[UBound(catArry)] := trim(ToText ((GroupName ({Ledger.ACCODE1})))) & "-" & mid({Ledger.name1},1,100);
);
"";

 
-----------------------------------------------------------------------------------
I used formula as indexprint syntax as below for Printing table of content........

WhilePrintingRecords;
NumberVar i;
NumberVar j;
shared StringVar Array catArry;
shared NumberVar Array pageArry;
StringVar Array Output;
Redim Output[UBound (catArry)];
FOR i := 1 to UBound (catArry) do (
Output[i] := mid(Left(CStr(ToText(pageArry[i],0))+" " + "|",5)+mid(catArry[i]+space(100),1,100) ,1,200);
);
Join(Output,CHR(13))

 

But it gives error a string can be most 254 characters long.
 
if u have another method to generate table of contents then please give me a solution for more then 600 or 10000 pages.
 
Thanks in Advance
Posted 23-May-13 0:29am
Hitu55328
Edited 23-May-13 0:37am
Pheonyx11.8K
v2

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Please Please Please Please Please.....................................................................................................................
help me to solve this problem...
 
Thanks in Advance
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 587
1 Sergey Alexandrovich Kryukov 479
2 Maciej Los 305
3 Mathew Soji 195
4 BillWoodruff 170
0 OriginalGriff 7,356
1 Sergey Alexandrovich Kryukov 6,777
2 DamithSL 5,461
3 Manas Bhardwaj 4,916
4 Maciej Los 4,475


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 25 May 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100