Yes, you can include newlines (hard returns) in Excel cell values—including column headers—when generating Excel files with OpenXML or ClosedXML.
You can insert a newline in a string using Environment.NewLine
(or "\n"
), and enable text wrapping: