Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

Not applicable

Convert QlikSense objects to images Programmatically

Hi,

I am trying to export an QlikSense objects such as Charts to images programmatically. I'm using QlikSense .NET SDK with my C# code.

I'm able to retrieve the objects in the sheet. But how can I convert the object to image? I am thinking to turn this object to bytes first, then .NET should be able to turn the bytes to images. However, I am stuck on converting objects into bytes. Any suggestions on this would be really appreciated.

Thanks,

Xiaoyi

4 Replies
akl
Honored Contributor

Re: Convert QlikSense objects to images Programmatically

Our own Printing services uses Magick.NET - Home which is a .Net wrapper around ImageMagick.

So instantiate a webcontrol, render the chart and capture the area using Magick.NET

Our charts are quite complex so not everything is drawn on canvas, headers for example is just normal dom nodes.

So it's probably going to be easier to "screenshot" the contents in the webcontrol then trying to do a byte conversion

Not applicable

Re: Convert QlikSense objects to images Programmatically

Thanks for your suggestion, I will try it out.

bortolotti_carl
New Contributor II

Re: Convert QlikSense objects to images Programmatically

did you have success?

bortolotti_carl
New Contributor II

Re: Convert QlikSense objects to images Programmatically

i initialize a WebBrowser control, to render the html, and then to generate the bitmap... but, i have problem with autorization, because the webbrowser is not in the same context... when you said "webcontrol", do you refer to a asp.net webcontrol?