Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Toc page / Index of contents {HURRY PLEASE}

Status
Not open for further replies.

melaito

IS-IT--Management
Jan 9, 2004
2
ES
Hi.

Using CR 8.5.0.217 with VB 6.

I would like to make a TOC page of a Products report which data is grouped by prodType field.

I have group headers with the prodType field and would like to make a TOC page with the Product Type (prodType field) and the page number.

Don't matter if it is on the beggining or the end of the report.

Thanks for your help.
 
I answer myself, as I've found the solution:


I have CR 8.5 and had some problems with the RunningTotal Function, so, I've rewrited it as follows:


WhilePrintingRecords;
StringVar grupName;
StringVar PageNum;

//if InStr(GroupName, {Articulos.TipoArticulo}) = 0 then
grupName:= grupName + GroupName({Articulos.CodigoTipoAccesorio}) + chr(13);

PageNum:= PageNum + ToText(PageNumber,0) + chr(13);


(Notice I'm using my own fields on this)

Regards,

melaito
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top