I'm having trouble,
I have charts on my pdf but they aren't showing even though i enclose them inside a container widget and give it a fixed width,
My screen looks like this
But when I download,
I get this page with no chart on it
I can't figure out what the problem might be, Please Help?
Hi,
I'm basically facing the same issue (using bali), the charts are not shown in the generated PDF.
Any way to make it work?
Thanks.
Edit: got it to work by closely following the attached example. Thanks.
Bruno Paixao wrote:
Which binaries did u download?..The MinGW or MSVC......am using MinGW but it isn't working at all
I downloaded the "wkhtmltox-0.12.3.2_msvc2013-win64.exe" file, from the Stable release download link.
I unzipped it and extracted the "wkhtmltopdf.exe" file, which I uploaded to the administration page as shown bellow:
Now, what really made a difference, in order to be able to print the charts, was having a fixed Grid Type in the theme applied to the page I wanted to print (I created a clone of the page with a custom theme, basically, only changed the grid type option)!
Hope it helps.
I resized the container that encloses the chart to be 11 columns. (Not Fill parent). which is what this documentation suggest. Is that what you mean by changing the grid type?
Then I set the height of the chart as well. But still I get a pdf that renders the container only. Chart invisible.
Conwell Nkuna wrote:
Grid type is a theme property, see link below.
https://www.outsystems.com/help/ServiceStudio/9.0/User_Interface/Theme_Properties.htm
I created a custom theme, based on the application theme, I was using dublin, and i changed grid type to fixed.
I then applied that theme to the page I wanted to print. I used a copy of the page, only for printing, basically I followed the example attached by the OP. Get it here:
https://www.outsystems.com/NetworkForums/Public.Download_Attachment.aspx?AttachmentId=2812
Hope that makes it clear.
Thanks for your help bud, unfortunately it didn't work for me.
I'm using two themes in one app, Tokyo and LondonFixed and I just checked the property Grid Type is fixed as well. The printable report flow uses LondonFixed since it doesn't work with SILK UI themes, Its just strang because it does render all the other Elements excepts the charts. No JavaScript error, no nothing man.
Something is just wrong with the binaries am using. Guess I just have to figure it out.
Yeah, this one wasn't easy to get it to work, I basically tried to copy every small detail from the example the OP gave us.
He did give special attention to this:
"Always enclose the chart webblock in a container with a fixed width. You can use the grid (don't use fill parent) or plain CSS, but if you don't specify a width, the chart is likely to be missing in the PDF (at least if you use one of the components below)."
Also there's one detail that might do the trick. He uses a specific layout in the print page: it's a layout with one single placeholder for main content. Try to copy or create a similar layout, and apply it to the print page.
I any case, I made it work, and all I did was to copy every little detail in the example.
good luck
Hello all
I am trying to generate charts in my pdf but they are not being rendered
I tried the fixed width of the container approach but it didn't work
Any suggestions?
Prajjwal Rai wrote:
If anyone is facing the same problem, just enclose the chart in a container and assign the width and min height in pixels only
No need to change the grid type
It worked for me
Cheers
Prajjwal