Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 19 in printed book and digital formats -- plus a one-year subscription (beginning with 20.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 20.4 ('Xojo Jigsaw')
Instant purchase and download via GumRoad!

FEATURE

PDF Pie Charts

Adding Xojo Charts to Your PDFs

Issue: 20.4 (July/August 2022)
Author: Stefanie Juchmes
Author Bio: Stefanie studied computer science at the university in Bonn. She came in touch with Xojo due to the work of her brother-in-law and got a junior developer position in early 2019 at Monkeybread Software.
Article Description: No description available.
Article Length (in bytes): 20,176
Starting Page Number: 36
Article Number: 20404
Resource File(s):

Download Icon project20404.zip Updated: 2022-06-30 18:36:03

Related Link(s): None

Excerpt of article text...

In this article we combine the power of the MBS ChartDirector Plugin with the MBS DynaPDF Plugin. Since ChartDirector library added PDF support in version 6, we can export a chart not just to image formats and SVG, but also get vector graphics to PDF format.

Than we can load the PDF page with the chart into a template for DynaPDF and place it on PDF pages. We can scale the chart on the page to the desired size.

Create a pie chart

Let's start with the pie chart. We add a method CreatePieChart returning the chart as a CDBaseChartMBS object. In this method, we first define with, two constants, the width and height of the chart in points.

Public Function CreatePieChart() as CDBaseChartMBS

...End of Excerpt. Please purchase the magazine to read the full article.