Hi,
I'm trying to export html page into pdf using Ultimate PDF.
but when I try to export data, the dynamic data does not exported, this is what I got :
the bar charts are empty, is there any solution to fix this issue please ?
Hi again I think that the BarChart is having a problem during the Printing
I used a BarChart_v1 for testing and modified some code to condition the filtered data based on input parameter
I already capture your scenario but again Im using BarChart_v1 and I don't know yet whats causing the problem with BarChart.
also adding the BarChart and BarChart_v1 on the same screen is not applicable and will not capture any data that's why I totally remove your BarChart on the screen and replaced it to BarChart_v1 so I'm guessing that BarChart is blocking some rendering here
Is the page that you're trying to export it have parameters to showing data? If yes, then you need to pass the parameters also in the URL. You can use ScreenToPDF_GetURL to generate the URL with Parameters or ScreenToPDF_EncodeQueryParameters to encode the query parameters for your screen and you can add it with the custom URL text.
Hi chris,
thanks for your answer.
No, it has no parameter, but I have two buttons act as a filter to send parameters to an aggregation, but the URL has no parameter.
Do you have any idea why please ?
Hi,Can you share the OML, so I can do further check?
here's the .oml, if you could help please
please upload OML also I think you should try to use the ScreenshotToPNG to try if that could capture the chart/data. if this doesn't work or still no data, your logic/fetching of data has some problem.I had this issue before I think that ScreenToPDF could not capture charts especially when attaching in email so instead we used ScreenshotToPNG
ScreenshotToPNG and printToPdf give the same result, empty data.
I got only static data in tyhe result, no dynamic data.
I think you should share the OML. I'm assuming that the PDF captures really fast and did not wait to load your data. there's a workaround for that, and I need to check the OML
Hi again,
here's the .oml
I added two filters filter 1 and filter 2,here's what I got :
Hi you're doing it wrong
You should save the values or add it on the parameter and add logic..
the thing is when calling the Print PDF imagine that calling or reloading the screen again on the 1st time.
that does not capture any interaction like filtering button you used.
so you need to save the data and fetch or add input parameter on the screen and add onready / onafter fetch condition to load the filtered values
thanks for your reply.
Could youd help please, I dont how to implement what did you say here "so you need to save the data and fetch or add input parameter on the screen and add onready / onafter fetch condition to load the filtered values "
many thanks :)
no problem with that. and I'm happy to hear that :)
Hello,
Have you tried the "ScreenToPdf" from ultimate pdf, if you do so, please make sure to use screentopdf's on application ready inside your modules onApplicationReady action and screen to pdf's onInitialize inside your screen's onInitialize action.
I Hope this solves your problem.
Thanks.
I'm using printTpPDF and ScreenshotToPng, I got only static data in tyhe result, no dynamic data.
So you can use screentopdf, that'll also allow you to take dynamic data using input parameters on the screen.
If you need any further assistance, please let me know.
here's the .oml if you can help
I've tried to achieve it making minimum changes to your existing code. Here's the OML.
thanks a lot, but I could not run your .oml.
what is the temp module ? i dont find it in forge.
here's what I get :