Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Generate snapshot image programmatically

I'm trying to generate a snapshot programmatically, just like Qlik Sense is doing when I right click and select "Export as image".

What I've found is that I need to send a request to: 'http://localhost:9902/printing/export/object/image?requestId=92796cf5-2d7f-4a07-973d-2c843fc21a2a' using jQuery.

Data neccessary with this request is:

data: JSON.stringify({"imageType" : "Png", "captureSize":{"width":482,"height":472,"dpi":92}, "objTree": {"id":"fzrxtjq","type":"scatterplot","area":{"left":0,"top":0,"width":1,"height":1}, "children":[],"isExtension":false,"snapshotData":"N4IgJghklajsdkjsdkjsd.............."}}),

There is an id in there (fzrxtjq) but what I have two questions

Question 1:

How do I generate or get a requestId (eg 92796cf5-2d7f-4a07-973d-2c843fc21a2a)

Question 2:

the snapshotData looks like it's a base64 encoded string but it's not. How do I generate this string?

1 Reply
agigliotti
MVP
MVP

Hi @Anonymous ,

did you find any solution ?
I have the same need, take a look at https://community.qlik.com/t5/Qlik-Sense-Integration/NET-SDK-C-Image-Export/td-p/1510925

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it