This question is locked. New answers and comments are not allowed.
Hi all.
I'd like to render the RadLinearSparkline control inside of the Table Cell, and then export document to PDF.
here is the code:
but there is no any content inside of Cell in the PDF document.
please help.
I'd like to render the RadLinearSparkline control inside of the Table Cell, and then export document to PDF.
here is the code:
private
static
void
AddTrendCell(IBlockContainer cell, IEnumerable<
double
> value)
{
var trendLine =
new
RadLinearSparkline();
trendLine.ItemsSource = value;
trendLine.LineStroke =
new
SolidColorBrush(Colors.Red);
trendLine.Background =
new
SolidColorBrush(Colors.Green);
var paragraph =
new
Paragraph();
paragraph.Inlines.Add(
new
InlineUIContainer(trendLine,
new
Size(180, 30)));
cell.Blocks.Add(paragraph);
}
but there is no any content inside of Cell in the PDF document.
please help.