S SFE Member Licensed User Apr 28, 2023 #1 I am creating a report from my app. All the data is being inserted into a PDF. There may be a easy way to do it but how do you get an xChart into a pdf? I tried Drawview but that was a no go crashes the code probably because of a type mismatch. There may a fairly straightforward way to do it but being a newbie I am not seeing it. Any suggestions would be greatly appreciated. Thank you
I am creating a report from my app. All the data is being inserted into a PDF. There may be a easy way to do it but how do you get an xChart into a pdf? I tried Drawview but that was a no go crashes the code probably because of a type mismatch. There may a fairly straightforward way to do it but being a newbie I am not seeing it. Any suggestions would be greatly appreciated. Thank you
jahswant Well-Known Member Licensed User Longtime User Apr 28, 2023 #2 Put the view in a panel and do a a snapshot shot a bitmap. Upvote 0
S SFE Member Licensed User Apr 28, 2023 #3 That sounds promising I will give it a try. Thanks for the suggestion. I will provide feedback once I give it a shot The best part of B4X is Erel and the community. Thanks again Upvote 0
That sounds promising I will give it a try. Thanks for the suggestion. I will provide feedback once I give it a shot The best part of B4X is Erel and the community. Thanks again
klaus Expert Licensed User Longtime User Apr 28, 2023 #4 Use the xChart.Snapshot property, this returns a bitmap of the chart which you can put onto the pdf. Upvote 0
S SFE Member Licensed User Apr 29, 2023 #5 Thanks Klaus. Being new to B4X I didn't know about SnapShot. I had found a solution but Snapshot is clear and concise. In addition I wanted to tell you thank you for the exceptionally well done charts. They are well thought out and the visual aspect of the chart is outstanding. Upvote 0
Thanks Klaus. Being new to B4X I didn't know about SnapShot. I had found a solution but Snapshot is clear and concise. In addition I wanted to tell you thank you for the exceptionally well done charts. They are well thought out and the visual aspect of the chart is outstanding.