c# - Unwrap text is ignored in excel -


i have asp.net mvc project, in have created excel document model data , trying work appearance. have problem - in few cases xlworksheet.cells[y, x].wraptext = false; ignored...

my code project description field:

...//other fields if (model.columnsneeded.projectdescriptionbool)    {        xlworksheet.cells[y, x].style.wraptext = false;        xlworksheet.cells[y, x++] = projitem.projectdescription;    } ...//other fields 

and excel result get, when click on wrapped text field cas see property wrap text set on: enter image description here

as foreach line had set :xlworksheet.cells[y, x].entirerow.wraptext = false;


Comments

Popular posts from this blog

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -