Quantcast
Channel: html2openxml Discussions Rss Feed
Viewing all articles
Browse latest Browse all 228

New Post: colspan

$
0
0
To clarify, it seems like I'm losing the "GridSpan" element in the OpenXML:
<w:gridSpan w:val="3"/>
The "old way" of setting this works for me:
            int? colspan = en.Attributes.GetAsInt("colspan");
            if (colspan.HasValue && colspan.Value > 1)
            {
                styleAttributes.Add(new GridSpan() { Val = colspan });
            }
But in the latest build this code doesn't seem to set the colspan for me:
            int? colspan = en.Attributes.GetAsInt("colspan");
            if (colspan.HasValue && colspan.Value > 1)
            {
                properties.GridSpan = new GridSpan() { Val = colspan };
                tables.IndexColumn += colspan.Value - 1;
            }

Viewing all articles
Browse latest Browse all 228

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>