I am using a TAdvRichEidtor in order to create a chart. Drawing the chart and adding text works perfectly using:
...
advRichEditor1.Canvas.TextOut(5,5,'TEST');
advRichEditor1.Canvas.Moveto(10,10);
advRichEditor1.Canvas.Lineto(20,20);
...
However when I come to create a PDF of this using a TAdvRichEidtorPDFIO the PDF is blank, apart from the default header and footer. I can change settings such as the size, orientation etc. and these work fine, just the canvas I created programmatically is not there.
If I type text in the TAdvRichEidtor manually and then save using TAdvRichEidtorPDFIO then the text saves to the PDF fine.
So how do I save to PDF the canvas in the TAdvRichEidtor that I have created programmatically?