Date: prev next · Thread: first prev next last
2014 Archives by date, by thread · List index


Hi Eike, all,

Calc function NETWORKDAYS is an add-in function and compatible with Excel's function NETWORKDAYS, 
but _not_ with Oasis ODFF 1.2 
(http://docs.oasis-open.org/office/v1.2/cos01/OpenDocument-v1.2-cos01-part2.html#__RefHeading__1018198_715980110)
 .

My first impression is that I could tweak the current code and make the function compatible with 
both.
For Excel the 3rd argument is a reference to a (range of) date, for ODFF it is a (reference to) 
matrix of 0 and 1. That means I can distinguish between the two. That distinction is important when 
exporting to Excel, too.

Do you think this is worth trying? Or would you prefer two internal functions, one regular in 
ScInterpreter (new, but using code from ScInterpreter::ScNetWorkdays_MS()) and one add-in 
(existing)? In that case I would need some hints where to make the switch from NETWORKDAYS in the 
cell (UI or file) and the two internal functions.


Winfried


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.