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

New Post: How to disable the console output for XSSFWorkbook

$
0
0
I found a solution.
Before the declaration of XSSFWorkbook object configure the console output to be:

var consoleOut = new StringWriter();
Console.SetOut(consoleOut);

When you finish with the Excel object, revert the console output again to be:

var stdOut = Console.Out;
Console.SetOut(stdOut);



Cheers,
Hisham

Viewing all articles
Browse latest Browse all 637

Trending Articles