XEROF

 

xlsgen 2.5 build #93 : Floating text box auto-size option


Build 2.5.0.93 of xlsgen adds the auto-size option for floating text boxes (in the worksheets, or in charts). This option makes it possible to ensure that the boundaries of the text box are computed to fit the text inside it.

Note that this option is ignored when it targets Excel 2007 files. The reason why is that there is not such option in the Excel 2007 file format. What Excel 2007 does is compute the size to fit the text inside it.

Here is a sample code in C/C++ :

xlsgen::IXlsChartPtr chart1 = wksht->NewChart(xlsgen::charttype_bar2D,
8, //row1
1, //col1
20, //row2
7 //col2
);
xlsgen::IXlsChartDataSourcePtr datasource1 = chart1->DataSource;
datasource1->SeriesInRows = TRUE;
datasource1->Range = L"Sheet2!R1C2:R4C8";

xlsgen::IXlsChartTextBoxPtr tb1 = chart1->AddTextBox();
tb1->Options->X = 10;
tb1->Options->Y = 20;
tb1->Options->Width = 10; // ignored
tb1->Options->Height = 10; // ignored

tb1->Label = L"label1 Label2";
tb1->AutoSize = TRUE;

Posted on 01-May-2008 15:19 | Category: xlsgen, Excel generator | comment[0] | trackbacks[4]

 

 

<-- previous page

< June >
0102030405
0607080910
1112131415
1617181920
2122232425
2627282930



 

 

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)