TheSwamp

Code Red => .NET => Topic started by: tjr on September 23, 2008, 10:11:54 AM

Title: Tables and TableBreakOptions
Post by: tjr on September 23, 2008, 10:11:54 AM
This is a separate issue related to my previous post about tables. I'm trying to set multiple values to my tables BreakOptions with little success. I tried creating an array of TableBreakOptions and passing that but that didn't work at all.

I also tried this but of course it isn't going to work as it overrides:
Code: [Select]
bmTable.BreakEnabled = true;
bmTable.BreakFlowDirection = TableBreakFlowDirection.Left;
bmTable.BreakOptions = TableBreakOptions.AllowManualHeights;
bmTable.BreakOptions = TableBreakOptions.AllowManualPositions;

Any thoughts?
Title: Re: Tables and TableBreakOptions
Post by: Glenn R on September 23, 2008, 10:26:49 AM
Have you tried OR'ing (bitcoding) them together?
Code: [Select]
bmTable.BreakOptions = TableBreakOptions.AllowManualHeights | TableBreakOptions.AllowManualPositions;
Title: Re: Tables and TableBreakOptions
Post by: tjr on September 23, 2008, 10:44:31 AM
Have you tried OR'ing (bitcoding) them together?
Code: [Select]
bmTable.BreakOptions = TableBreakOptions.AllowManualHeights | TableBreakOptions.AllowManualPositions;
You're awesome Glenn. That worked out quite well. Thanks.
Title: Re: Tables and TableBreakOptions
Post by: Glenn R on September 23, 2008, 10:47:00 AM
No probs mate - glad I could help.
Title: Re: Tables and TableBreakOptions
Post by: tjr on September 23, 2008, 10:48:04 AM
No probs mate - glad I could help.
Any thoughts on my Other table related issue? (http://www.theswamp.org/index.php?topic=25054.0)
Title: Re: Tables and TableBreakOptions
Post by: Glenn R on September 23, 2008, 10:51:01 AM
I had a brief look at that when it first went up, however I haven't really done anything with Tables. I will try and have a more serious look...
Title: Re: Tables and TableBreakOptions
Post by: tjr on September 23, 2008, 10:54:58 AM
I had a brief look at that when it first went up, however I haven't really done anything with Tables. I will try and have a more serious look...
I found on on a table you can lock the content of each cell. I might be able to work from there.