Skip navigation
Currently Being Moderated

Overlapping cellstyles.

Aug 6, 2012 7:16 AM

I've asked this question before, trying again, as I've not solved this one yet..

 

I'm importing XML originating from HTML with tables directly into a document.

 

My script does this with the tables;

- resizes cells to match content

- resizes table to match document width

- finds "best" position for each table and places it there

 

So far so good

 

All cells have assigned a cellstyle, or will be assigned a "default" style in the script.

 

Problems with the cell formatting occurs when, for example;

 

Cell with text "Example" in row 1 is styled with a border on top and bottom

Cells in row 2, placed below "Example", is styled with border on bottom, but no border on top..

 

Here's a simple example

example_1.gif

 

Cell with the text "Example" bottom border "disappears" until I manually reassign the style to the cell.

 

How can I solve this without getting "too manually involved"?

 

Is it a setting in the table or cellstyles I overlook here? (I'm more of a scripter than designer..)

 
Replies
  • Currently Being Moderated
    Aug 7, 2012 2:05 AM   in reply to MrLeif

    Hi,

     

    I think your table is not formatted with table header row options, try with applying "Example" cell as table header row then it wont change anymore even though if u r applying cell styles to next rows.

     

    Regards,

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 7, 2012 4:00 AM   in reply to MrLeif

    Usually table cells will care about its own, but not on the other or adjacent cells, so there is no other option than re-applying the cell styles and even u can try out with the help of scripts.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points