ReportGen HeaderRow.Style does not seem to translate to word document?
Mostra commenti meno recenti
Hi - I'm tyring to format a table using code for a word template. I am trying to place a border above and below the header row (first row with the column headers) and (evntually) a border below the last line. I have tried to create a headerRowStyle (generic), then modify as such:
% Generic header row with buffer margins and borders
headerRowStyle = ...
{ ...
InnerMargin("2pt","2pt","2pt","2pt"), ...
Bold(true), RowSep('solid'), ...
Border('solid'),...
};
% Remove the border on left and right, keep top and bottom
HeaderRow = AT.Header.Children;
headerRowStyle{1,4}.LeftStyle = [];
headerRowStyle{1,4}.RightStyle = [];
headerRowStyle{1,4}.BottomStyle = 'solid';
headerRowStyle{1,4}.BottomColor = 'black';
headerRowStyle{1,4}.BottomWidth = '48px';
% Set the style
HeaderRow.Style = headerRowStyle;
My table is a FormalTable (called AT).
This puts a border on top, but not really on the bottom (it's very faint - that's why I tried '48px' figuring it was be insanely thick). According to the headerRowStyle, it should be as I wish:

I can change the width to any size and there is no change... Maybe I'm going about this all wrong, but I want a table like this:

What I get (no matter what I change border with to) is this:

I have to be doing something wrong obviously... Anyone konw what??? Thanks!
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su MATLAB Report Generator Task Examples in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!