When a formula contains new lines, it is parsed incorrectly as follows:
- When it is shared formula it breaks the imported expression and replaces it with #NAME? error.
- In normal case it simply preserves the formula string converting it to StringExpression.
Workaround: Remove the new lines in the formulas.
Have in mind that this code will fix the issue only for the second scenario, when the formula is not shared.
CellRange usedCellRange = workbook.ActiveWorksheet.UsedCellRange;
for (int row = usedCellRange.FromIndex.RowIndex; row < usedCellRange.ToIndex.RowIndex; row++)
{
for (int column = usedCellRange.FromIndex.ColumnIndex; column < usedCellRange.ToIndex.ColumnIndex; column++)
{
CellSelection cell = workbook.ActiveWorksheet.Cells[row, column];
ICellValue value = cell.GetValue().Value;
if (value.RawValue.Contains("\n"))
{
cell.SetValue(value.RawValue.Replace('\n', ' '));
}
}
}
NullReferenceException when the FindOptions does not contain start cell
Workaround:
Set StatCell like this:
FindOptions options = new FindOptions()Currently, this could be achieved by exporting the document to PDF and then by using RadPdfViewer's WPF control ThumbnailFactory class. Sample code may be seen at this forum post: http://www.telerik.com/forums/pdf-thumbnail-returns-transparent-images#jO33X-E8Cki_qLh_KsToWg Help article: WPF PdfViewer - Exporting Fixed Page to Image - Telerik UI for WPF
string themeName = "Office";
ThemeFontScheme themeFontScheme = PredefinedThemeSchemes.FontSchemes.FirstOrDefault(x => x.Name == themeName);
ThemeColorScheme themeColors = PredefinedThemeSchemes.ColorSchemes.FirstOrDefault(x => x.Name == themeName);
DocumentTheme theme = new DocumentTheme(themeName, themeColors, themeFontScheme);Setting SetIsBold method to true on a CellSelection, resets the font size of those cells to 11 points.
See the generated file of the attached program.
Cells C1:F1 have font size 11 instead of expected 9.
PS: Is it really necessary to have a support plan to report bugs?