It is currently 21 April 2025, 13:38 Advanced search

Google charts in Book/Report

Questions and answers on how to best use Instant Developer

Re: Google charts in Book/Report

Postby ljwilson » 5 August 2021, 15:26

If you already have the GoogleChart displaying to the user when they create the report, then the code in the sample should be sufficient.

The way it works is as soon as the GoogleChart is rendered on the panel it saves it as an image in the temp folder. You can then embed the image in a detail box to display in the report.

...jack
ljwilson
 
Posts: 783
Joined: 26 November 2013, 14:15

Re: Google charts in Book/Report

Postby john w » 5 August 2021, 18:19

Seems to me this should work without that. I sent a malfunction report. I guess I will learn if it is a malfunction, a bug, or a design feature. :)
Regards

John W
User avatar
john w
 
Posts: 834
Joined: 24 October 2012, 16:29
Location: Apple Valley, Minnesota USA

Re: Google charts in Book/Report

Postby john w » 9 August 2021, 16:30

Here is the response on Google Charts in reports, However, it does not appear I can pass any parameters or values to it such as setting trendlines or calling the R2 (R Squared) result. The problem with that is really creates very basic charting.
-----------------------------
It's not possible to use Google Charts in a report because the charts generated with it are created by the browser and there is no server-side image that can be printed in the report.
Charts contained in reports printed to PDF are printed using OxyPlot library.

If you comment the row
NewGraph.setLibrary(GoogleChart)
in the BeforeFormatting event, you will see the chart created with OxyPlot in the report.

https://doc.instantdeveloper.com/eng/de ... e&lang=eng

https://oxyplot.github.io/
--------------------------------------
Regards

John W
User avatar
john w
 
Posts: 834
Joined: 24 October 2012, 16:29
Location: Apple Valley, Minnesota USA

Previous

Return to Tips & Tricks

Who is online

Users browsing this forum: No registered users and 19 guests

cron