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

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -