for (int i=1; i<= xls.ChartCount; i++)
{
xls.GetChart(i, null);
}
will loop 0 times for worksheets and 1 time for workbooks.
int RowCount = xls.RowCount;
int ColCount = xls.ColCount;
for (int row = 1; row <= RowCount; row++)
{
for (int col = 1; col <= ColCount; col++)
{
Remember that loops in C# will evaluate the second parameter every time the loop is executed.
while (xls.NamedRangeCount > 0) //WRONG! This loop might never end.
{
xls.DeleteNamedRange(1); //Might not be deleted, and NamedRangeCount will never be 0.
}
for (int i = xls.NamedRangeCount; i > 0; i--) xls.DeleteNamedRange(i);
For i = xls.NamedRangeCount To 1 Step -1 xls.DeleteNamedRange(i);
for i := xls.NamedRangeCount downto 1 do xls.DeleteNamedRange(i);
A1: 2
B1: =$A$1 + $A$57
and you copy the row 1 to row 2, in Excel or FlexCel when this property is false you will get:
A2: 2
B2: =$A$1 + $A$57
When this property is true, you will get:
A2: 2
B2: =$A$2 + $A$57
In the second case, the first reference was updated because it was inside the range being copied, but the second was not.
This property might be useful when you want to duplicate blocks of cells, but want the absolute references inside it to point to the newer block.
Color myColor = hslColor;
Is the same as:
Color myColor = hslColor.ToColor();
Color myColor = labColor;
Is the same as:
Color myColor = labColor.ToColor();
Note that this overload version will automatically save the images to disk when needed. If for any reason you do not want to save the images, use the overload with SaveImagesToDisk parameter.
For example, you could set a Macro "Mycolor" with CssTags.Add("mycolor", "red"); and then define a CssProperty: CssWhenTop.Main = "background-color:<#mycolor>";
This method by default contains the following Macros:
You can modify those Macros or add your own definitions here and use them when defining your CSS.
Note that the variables are not case sensitive. You can write them in any combination of lowercase and uppercase.[Missing <typeparam name="T"/> documentation for "M:FlexCel.Report.FlexCelReport.AddTable``1(System.String,System.Collections.Generic.IEnumerable{``0})"]
[Missing <typeparam name="T"/> documentation for "M:FlexCel.Report.FlexCelReport.AddTable``1(System.String,System.Collections.Generic.IEnumerable{``0},FlexCel.Report.TDisposeMode)"]
[Missing <typeparam name="Q"/> documentation for "M:FlexCel.Report.ILinqDataTableState.GetDetail``1(FlexCel.Report.TLinqDataTable{``0},System.Boolean@)"]
[Missing <typeparam name="T"/> documentation for "T:FlexCel.Report.TFieldExpressions`1"]
[Missing <typeparam name="T"/> documentation for "T:FlexCel.Report.TLinqDataTable`1"]
[Missing <typeparam name="Q"/> documentation for "M:FlexCel.Report.TLinqDataTableState`1.GetDetail``1(FlexCel.Report.TLinqDataTable{``0},System.Boolean@)"]
[Missing <typeparam name="Q"/> documentation for "M:FlexCel.Report.TLinqDataTableState`1.SortDataByField``1(System.Int32,System.Boolean,System.Boolean)"]
for (int i=1; i<= xls.ChartCount; i++)
{
xls.GetChart(i, null);
}
will loop 0 times for worksheets and 1 time for workbooks.
int RowCount = xls.RowCount;
int ColCount = xls.ColCount;
for (int row = 1; row <= RowCount; row++)
{
for (int col = 1; col <= ColCount; col++)
{
Remember that loops in C# will evaluate the second parameter every time the loop is executed.
while (xls.NamedRangeCount > 0) //WRONG! This loop might never end.
{
xls.DeleteNamedRange(1); //Might not be deleted, and NamedRangeCount will never be 0.
}
for (int i = xls.NamedRangeCount; i > 0; i--) xls.DeleteNamedRange(i);
For i = xls.NamedRangeCount To 1 Step -1 xls.DeleteNamedRange(i);
for i := xls.NamedRangeCount downto 1 do xls.DeleteNamedRange(i);