I would like to create a report with data tables and have images of charts adjacent to the data tables. All of the examples in ChartDirector with PDF Output contain only stand-alone charts. I cannot locate any examples of how to create a PDF report with data tables and charts on the same PDF page. It may be likely that what I am trying to accomplish may not be possible.
ChartDirector doesn’t output tables.
So you may need to build that with DynaPDF.
And if you have DynaPDF Pro, you can place the existing PDF with the chart into the new PDF on a page.
Or with DynaPDF Lite merge the documents and have table and PDF on separate pages.
Or with DynaPDF Starter draw the tables and then the chart as high res image.
Unsure what platform you are building for but if you don’t have access to a full range of plugins it sounds as if it is something that could be built using wkhtmltopdf as you can design what you require in html an css before outputting to pdf. Certainly something i have done on windows.
Thank you Christian. I have a DynaPDF Starter license and a ChartDirecter license.
I am at the point where I have drawn the tables and I have done the code for the chart to output to a canvas on a xojo window, but I cannot figure out how to insert the chart to the PDF just below a data table on the same page as the table.
Looking at the examples, it looks like I have to create a PDF for the tables and a separate PDF for the chart and somehow join the two PDFs. I would like to code it creating just one PDF, if that is possible.
I am using a Windows platform.
Maybe like the “simplePie with DynaPDF” example file from us?
with c.makeChart(c.kPNG) and pdf.InsertImageFromBuffer.
For placing PDF content on the other hand, you would need a Pro upgrade, for just merge a Lite upgrade.
Maybe like the “simplePie with DynaPDF” example file from us?
with c.makeChart(c.kPNG) and pdf.InsertImageFromBuffer.
That worked! Christian, you are a genius!
One final question. Does “c.makeChart(c.kPNG)” create a physical picture file anywhere on the drive that I have to cleanup after everything is done?
The suggested function return image as string. So there is no file.