I want to create a pdf report using AdvStringGrid with AdvGridPDFIO.
When I insert a chart in a cell of AdvStringGrid with
AdvSGReport.CellControls[0,0] := aChart;
The chart is displayed as expecxted in the cell, but when saving to a pdf with AdvGridPDFIO, this cell is empty. The cells where I just entered some strings are printed.
So it seems AdvGridPDFIO can't handle TChart.
Is this an error on my site, a bug or simply not supported?
If latter, I could insert a bitmap of that chart into the cell, but this has the disadvantage that Text of the chart is than also a picture in the PDF instead of text.
At this moment, a cell control won't be exported in the PDF. It would require that the chart on itself can also render to PDF and at this time, this is not yet possible. So yes, at this time you could use AdvChartView.PaintTo() to have the chart as a bitmap and insert that in the grid. We'll consider for future development to add PDF export capabilities to the TAdvChartView and then we can investigate how to combine the chart PDF export with the grid PDF export.
another question: It seems I can't stop AdvGridPDFIO from printing the grid lines (cell borders).
The AdvStringGrid has no visible cell borders at runtime, but in pdf the cell borders are printed (and quite thick). I think I tried about every property but have no luck. Is there such an option?