How to create screenshot

What I’m trying to do: I’m trying to add a button to my project which will take a screenshot of the xypanel (or the current form)

I know it seems extremely stupid since there’s a simple button for it but I’ve disabled taking screenshot.

Basically, I want to allow users to take screenshots of few selected pages

What I’ve tried and what’s not working: setting image source to that xypanel

Code Sample:

# code snippet

Clone link:
share a copy of your app

Hi @divyeshlakhotia and welcome to the forum,

I’m not sure this is exactly what you want but you could render the pages you want to share using anvil’s pdf render.

Anvil Docs | Creating PDFs

1 Like

Thanks! It worked well!