Quantcast
Channel: npoi Discussions Rss Feed
Viewing all articles
Browse latest Browse all 637

New Post: Error when building project - NPOI.SS.UserModel.FontBoldWeight' does not contain a definition for 'BOLD'

$
0
0
Hi,

Apologies but I'm new to this, I've picked up a project from a colleague that left (with no handover). I opened up his project and noticed a missing reference of NPOI. I downloaded the latest version and updated the reference, now when I try to build the project I get the following error:
NPOI.SS.UserModel.FontBoldWeight' does not contain a definition for 'BOLD'
which relates to the following code:
            IFont titleFont = _Workbook.CreateFont();
            titleFont.Boldweight = (short)FontBoldWeight.BOLD;
I know this was built previously as there is a version of the application that works. Any help would be appreciated.

Viewing all articles
Browse latest Browse all 637

Trending Articles



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