Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
bramkn
Partner - Specialist
Partner - Specialist

.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
bramkn
Partner - Specialist
Partner - Specialist
Author

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.

View solution in original post

33 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi

 

Check below link for more help.

 

https://www.nuget.org/packages/QlikSense.NetSDK/

https://help.qlik.com/en-US/sense-developer/November2018/APIs/net+sdk/html/7b30b3a1-77da-4bbe-bdc2-1...

 

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
bramkn
Partner - Specialist
Partner - Specialist
Author

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...

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

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

 

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
bramkn
Partner - Specialist
Partner - Specialist
Author

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.
7n9bauijtrugl24
Partner - Contributor III
Partner - Contributor III

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

bramkn
Partner - Specialist
Partner - Specialist
Author

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.
LuQuan182
Partner - Contributor II
Partner - Contributor II

Hi,

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

Regards,

Lu Quan

bramkn
Partner - Specialist
Partner - Specialist
Author

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.

LuQuan182
Partner - Contributor II
Partner - Contributor II

Hi @bramkn ,

 

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