Qlik Community

Qlik Sense Integration, Extensions, & APIs

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

Highlighted
Partner
Partner

.NET SDK C# Image Export

Hi,

So the people using JS got the Image export available with their API.

Is there anyone that found a way to do this within C#? 

Apparently the API's for this are not public, but why??

 

I have got it to work with opening a browser and navigating through it to export the image and get it from the server. But this is not really reliable to use.

If the API's are not going to be public, is there a way to for example put a bit of JS within the application and handle this image export for the C# bit? If so does it need any install of node.js for example? I have not worked with JS and the Qlik API's.

If someone would be able to provide sample code for this last bit, that would be really awesome.

Labels (7)
1 Solution

Accepted Solutions
Partner
Partner

Re: .NET SDK C# Image Export

Yes.
The way to do it, is to do a HTTP Request to the Printing service the same as the Client does to export.
The Engine provides all the information needed to fill the body of the request.
I am using the Certificate to connect to the Engine, this is also possible for this HTTP request for the printing service.
Hope this helps.
If more info is needed I need to get my code and give you some snippits.
10 Replies

Re: .NET SDK C# Image Export

Partner
Partner

Re: .NET SDK C# Image Export

I don't want to sound rude.
but did you read my post?

I have my application running I just need more functionallity, of course I have checked the reference...

Re: .NET SDK C# Image Export

Its ok.

I do understand that you have a working model, but just wanted to make sure that you got access to the documentation.

If you dont find it in document, then I doubt that functionality is available.

 

Regards,

Kaushik Solanki

 

Partner
Partner

Re: .NET SDK C# Image Export

It's ok.

But thats exactly what I am saying. My question is Why is such an API (or the functionality) not available for C#/.NET, while it is for JS.
The second question is if there is a way around it for C# that anyone has got working.
Partner
Partner

Re: .NET SDK C# Image Export

@b_knuever: Did you ever figure out how to do this?  

Partner
Partner

Re: .NET SDK C# Image Export

Yes.
The way to do it, is to do a HTTP Request to the Printing service the same as the Client does to export.
The Engine provides all the information needed to fill the body of the request.
I am using the Certificate to connect to the Engine, this is also possible for this HTTP request for the printing service.
Hope this helps.
If more info is needed I need to get my code and give you some snippits.
Partner
Partner

Re: .NET SDK C# Image Export

Hi,

@b_knuever:  can you give us more detail about the printing service and the methods used?

Regards,

Lu Quan

Partner
Partner

Re: .NET SDK C# Image Export

Hi @LuQuan182 

 

To be honest the code I had seemed to stopped working with new apps. Probably because of the new things added like abbreviations. Haven't had the time to pinpoint the issues completely.

When using chrome for example you can analyse the calls the browser is making. When you export an image you will see the export image post to the printing service. The thing is to rebuild that call within your C# code. Most things can be gotten form the engine. You just need to build up the request from scratch. Hope this helps enough to get you going.

Partner
Partner

Re: .NET SDK C# Image Export

Hi @b_knuever ,

 

Very helpful last time,  i hope you can help me again at this time .

Now i have some authentication issue on .NetCore that seems different from .Net version of SDK,

after ntml authentication i'm not able to get the location.SessionCookie (valorized to null),  did you ever see the problem or the solution to avoid it?

I opened a dedicated thread on the community with details:

https://community.qlik.com/t5/Qlik-Sense-Integration/Retrieve-SessionCookie-using-AsNtlmUserViaProxy...

 

Thank you,

Lu Quan