I want to create a weekly calendar view.  What I need is a grid containing
time-of-day (30 minute increments) in the leftmost column, and weekday names
in the first row.

Then, I need to overlay bordered, colored rectangles in the day columns
which span the necessary number of 1/2 hour timecells in the body of the
grid, with centered text (vertical or horizontal) describing the event and
time.  I want something very similar to this:

http://www.nsftools.com/misc/Db2ConfSchedule.png

I am looking for the best method of doing this.  Here are approaches I am
considering:

1. Paint the base grid using PdfPTable.  Use direct content to paint colored
rectangles and text on top of PdfPTable to represent appointments/events.
Issues: how to align text in the rectangles; it's difficult to align
rectangles perfectly with pdfpTable cells edges and one another.

2. Paint the base using PdfPTable.  Use one-celled PdfPTables for each
appointment using direct content to place the cell perfectly.  Advantage:
can use cell text alignment properties to align text.

3. Use direct content for everything.  Same issues as (1) with unknown
benefits.  Also, text alignment and text wrapping must be done manually as
far as I know.


Any comments on the best approach?  Are there others to consider? My main
issues are achieving perfect rectangle alignment and text placement;  I
don't want to have to write text alignment/wrapping code if I can avoid it!

Thanks for any tips.






------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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