c# - How to get max split length of Microsoft Word Table Cell? -


I am using VSTO to automate the word processor, code # 03 addin

I think if I keep font size 11 then I can split a table of cells into 11 rows, but if I increase the font size, then it can be divided into 25 rows.

Is there any way on which I can get the maximum partition size of the special cell before executing it on the partition?

First of all, the maximum number of column segmentation is 63, so you can get one Room can divide by 62.

Now on bad news - there is no programmatic way to know the maximum number of acceptable line divisions. Try a lot of methods, you will get error code 5148 (which lists the incorrect number range of acceptable partition) and try it under the maximum limit of 5148 error, but above the actual admissible partitions, and you get error code 4198.

The only way to ensure that this is the maximum number of division for maximum hands, per font and per-size test. For example, here are the calibri numbers:

  • Font size (s): 8 - 11, Maximum partition: 13
  • Font size (s): 12 - 13
  • Font size: 15, maximum size: 14, maximum partition: 17
  • Font size: 15, maximum partition: 18
  • Font size: 16, maximum Font Size: 17 - 18, Max Partition: 21
  • Font Size: 19, Max Partition
  • Font Size: 20, Max Partition : 24
  • Font size (s): 21, maximum partition: 25
  • Font size ( S): 22 - 23, Maximum partition: 27
  • ATC.

To calculate the hand, you should put your cursor inside the cell that you want from the font and the font size you want, and then in the split cell dialog, To maximize the number to run through UpDownNumeric control it will allow you to split the line. Your profit varies, and even slightly changes in the table and, oddly enough, in the actual cell, sometimes they change the maximum partition.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -