Shorts - pdf report shows only lines - no data

Hello all.

A stand alone web app using shorts 2 produces a preview of a correctly formated and data filled report. However, when I go to download that report as a pdf, all I get are the lines between record rows. This occurs only in the Linux/Pi compiled version. The same code compiled for windows produces both a correct preview as well as a correct pdf. Am I missing something in my linux/pi distribution?

Thank you,
Tim

You need to tell DynaPDF where your fonts are installed on the server. I’m not near my computer to tell you the DynaPDF way to do that.

Hello Ralph.
I’ll try to find that. I do have them set up and the ChartsMBS knows where there are, a different object I know, but I do recall a similar issue with the charts.

Thanks for the tip!
Tim

Here’s what I have in my DynaPDF Constructor in BKS_ShortsDynaPDF:

If TargetLinux Then Call AddFontSearchPath("/usr/share/fonts/msttcorefonts", True) Else // on Mac and Windows we use system fonts. End If

Fix the path for you situation, of course.

If they arent installed, you need to call FontActivateMBS
And FontDeActivateMBS when you are closing the app.
AddFontSearchPath works if pointed to the resources folder of your own app too, so you dont need to install it.

DynaPDF doesn’T care about what fonts are activated.

Just point to the font folder on your linux computer with AddFontSearchPath.

Thank you Ralph.
That fixed it!

Tim