PDFsharp & MigraDoc Foundation http://forum.pdfsharp.de/ |
|
Table Of Contents - flow into 2 columns http://forum.pdfsharp.de/viewtopic.php?f=2&t=797 |
Page 1 of 1 |
Author: | sbilo [ Thu Jul 23, 2009 2:39 pm ] |
Post subject: | Table Of Contents - flow into 2 columns |
I'd like to get a Table of Contents to flow in 2 columns ... listing links down left column first then continuing the list down the right column before going on to the next page. Something like this: First topic ........ 1 TwentyFirst topic ....... 102 Second topic ..... 3 TwentySecond topic ... 108 Third topic ........ 5 TwentyThird topic ....... 117 Fourth topic ....... 7 TwentyFourth topic ..... 119 Fifth topic .......... 9 TwentyFifth topic ........ 130 etc... Twentieth topic ...98 --- end of page here -- Thirtieth topc ... 215 Fortifirst topc ........... 315 Thirtifirst topic .. 220 Fortysecond topic ..... 320 etc I currrently have a STYLE defined that will display the table of contents in a single narrow column // Create a new style called TOC based on style Normal style = document.Styles.AddStyle("TOC2", "Normal"); style.Font.Name = "Arial Narrow"; style.Font.Size = 6; style.ParagraphFormat.AddTabStop("2cm", TabAlignment.Left, TabLeader.Dots); style.ParagraphFormat.AddTabStop("8cm", TabAlignment.Right); style.ParagraphFormat.Font.Color = Colors.Blue; Is there a way to flow the paragraph or is there a different approach? thanks. |
Author: | Thomas Hoevel [ Thu Jul 23, 2009 4:06 pm ] |
Post subject: | Re: Table Of Contents - flow into 2 columns |
I'd make a table with two columns and distribute the TOC entries between the columns. You'll have to handle pagebreaks yourself in this approach (simple if all entries fit into 1 line each). |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |