Set column width to scalable unit like em or percent with Golang via C++

Contents
[ ]

Generating an HTML file from a spreadsheet is very common. The size of the columns is defined in pt, which works in many cases. However, there are cases where this fixed size may not be appropriate. For example, if the container panel width is 600 px where this HTML page is displayed, you may get a horizontal scrollbar if the generated table width is larger. It is required that this fixed size be changed to a scalable unit such as em or percent for better presentation. The following sample code can be used, where HtmlSaveOptions.GetWidthScalable() is set to true to create scalable widths.

Sample source file and output files can be downloaded from the following links:

sampleForScalableColumns.xlsx

outsampleForScalableColumns.zip