Qlik Community

Qlik Sense Integration, Extensions, & APIs

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

Announcements
See why Qlik is recognized as a Leader for the 10th year in a row – and discover how Qlik can help put your business in the lead. Get Report
Highlighted
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

5 Replies
Highlighted
Employee
Employee

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

Highlighted
Not applicable

Re: Convert QlikSense objects to images Programmatically

Thanks for your suggestion, I will try it out.

Highlighted
Partner
Partner

Re: Convert QlikSense objects to images Programmatically

did you have success?

Highlighted
Partner
Partner

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?

Highlighted
Partner
Partner

Re: Convert QlikSense objects to images Programmatically

did you find any solution?