Looks like my previous email was cut off: 
I'm creating a regional sales report in following format where the summary of 
each level (region, district, or store) is on its own separate page in 
hierarchical format. I'm trying to achieve the following outline:

Region 
--  District 
---   store
---   store 
--  District 
---   store
---   store
----  store 

I got frustrated and deleted my original code but was adding chapters and 
sections in a loop.  I get lots of extra pages. Everytime i add store, a 
district is added also. Also,  some pages just contain the outline. Pseudocode:
Pagecount = 0  
For each record
    Pagecount += 1 
    If rectype = "region"
        cTitle = new paragraph("Region Chapter", chapterFont)
        regChapter = new chapter( cTitle, pageCount)) 
     If recType = "district"  
        Districtsection = new section(districtname, pagecount)  
        regChapter.add(districtSection)
     if rectype = "store" 
        storesection = new section(storename, pagecount)
        districtsection.addsection(storeSection)
Next record

Do I add a store section to district section or to a district paragraph. Can 
you provide example as 
to how I might accomplish? 

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to