Hello!
I try to understand how to use variable with DataType DotNet, when we create export to Excel.
Rather, what we can use instead this code, etc.?
XlWrkSht.Range(xlColID + xlRowID).HorizontalAlignment := -4108; //Center
XlWrkSht.Range(xlColID + xlRowID).HorizontalAlignment := -4131; //Left
XlWrkSht.Range(xlColID + xlRowID).HorizontalAlignment := -4152; //Right
Maybe someone did it.
Thank you!
0
Comments
My solution was create a custom copy of Excel Buffer working with OpenXml (I followed this article), which can be expandend with all the features needed.
Hope it helps.
I thought that we can use this function with DotNet:(
I hope Microsoft implement it in NAV 2014:)
It helped. Thank you for answer!
Can you please explain a little more about aligning text working with OpenXml?
I do not know even how to start
* Download and deploy the ClosedXML dll.
* Replace in the code the references of variables XlWrkBk, XlWrkSht, XlRange, etc...
* Upgrade the code interface with these new DotNet components.
* Add a new field in Excel Buffer table to be managed in CreateSheet function in order to set cells alignment.
Hope it helps!
And, as a developer, if I want to use it, I must convince my customer to install this tool on their server.
Ok, understood.
Thank you geordie!