Quantcast
Channel: Open XML Format SDK forum
Viewing all articles
Browse latest Browse all 1288

How to implement the feature that adjusts an Excel column to the precise width, programmatically??

$
0
0

My Open XML-based application creates a spreadsheet that contains a column with filenames. They vary in length and I would like to set the width of that particular column to precisely fit the longest filename.

Is there some Excel-specific way to measure the width of a string (with the current font, of course), in pixels?

TIA





Viewing all articles
Browse latest Browse all 1288

Trending Articles



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