XEROF

 

xlsgen 3.0 build #25 : Time-based conditional formattings


Build 3.0.0.25 of xlsgen adds support for time-based conditional formattings for XLS and XLSX files.

With this build, xlsgen completes support for all conditional formattings (some were recently introduced in Excel 2007 and Excel 2010).

Time-based conditions are, as the name suggests, a mechanism for highlighting cells whenever a date matches the condition. For instance a condition may be "tomorrow", in turn if we are say thursday March 29, 2012, then all cells having a date such as March 30, 2012 will be highlighted.

Time-based conditions are presented in the xlsgen object model as predefined conditions, and they are internally translated into Excel formulas. Therefore, they are also evaluated accordingly (for instance, when rendering a sheet).

A new enumeration type makes its appearance :

typedef enum
{
conditionaltimeperiod_today = 0;
conditionaltimeperiod_yesterday = 1;
conditionaltimeperiod_tomorrow = 2;
conditionaltimeperiod_last7days = 3;
conditionaltimeperiod_thismonth = 4;
conditionaltimeperiod_lastmonth = 5;
conditionaltimeperiod_nextmonth = 6;
conditionaltimeperiod_thisweek = 7;
conditionaltimeperiod_lastweek = 8;
conditionaltimeperiod_nextweek = 9;
} enumConditionalTimePeriod;

Here is an example showing how to use the new time-based conditional formattings :

xlsgen::IXlsConditionalFormattingPtr cf = wksht001->NewRange(L"C2:C8")->NewConditionalFormatting();
cf->PredefinedCondition->DatesMatchingPeriod(xlsgen::conditionaltimeperiod_nextmonth);
cf->Style = style0002;

Posted on 29-March-2012 13:58 | Category: xlsgen, Excel generator | comment[0] | trackback[0]

 

 

<-- previous page

< March >
0102030405
0607080910
1112131415
1617181920
2122232425
2627282930
31



 

 

This site
Home
Articles

DevTools
CPU-Z
EditPlus
ExplorerXP
Kill.exe
OllyDbg
DependencyWalker
Process Explorer
autoruns.exe
Araxis
COM Trace injection
CodeStats
NetBrute
FileMon/Regmon
BoundsChecker
AQTime profiler
Source monitor
GDI leaks tracking
Rootkit revealer
Rootkit removal
RunAsLimitedUser(1)
RunAsLimitedUser(2)

 

 

Liens
Le Plan B
Un jour à Paris
Meneame
Rezo.net (aggr)
Reseau voltaire
Cuba solidarity project
Le grand soir
L'autre journal
Le courrier suisse
L'Orient, le jour
Agoravox (aggr)