Hi @macarson123 we are running standalone on premise, so we didn't hit the error you mentioned. No updating required.
@jan_blaha , things work great after the update. Thanks for the quick turnaround.
Hi @macarson123 we are running standalone on premise, so we didn't hit the error you mentioned. No updating required.
@jan_blaha , things work great after the update. Thanks for the quick turnaround.
Great, thanks! Will update this week.
For what it's worth, ChromePdf seems to be in the Enum in github, just not in the 1.10.1 nuget package.
https://github.com/jsreport/jsreport-dotnet-types/blob/master/jsreport.Types/Request/Recipe.cs
Hi all, I want to specify my Recipe on the jsreport.Types.Template object when sending my RenderRequest. However, I don't see the option to set ChromePdf on the Recipe enum.
I am using jsreport.Types 1.10.1 nuget package.
Is there a way to specify ChromePdf? We have that as our default in the template, but want to be able to switch between HTML and ChromePdf easily.
Thanks,
Keith
If I make my own anonymous type that serializes to the same json as I used in Postman, that renders in German for me as well.
var request = new
{
Template = new Template { Shortid = "HkaCcar-M" },
Data = new { TestId = 17 },
Options = new { Language = "de" }
};
var report = await rs.RenderAsync(request);
Which works, but I'm curious if I can use the RenderRequest object to accomplish this instead.
Hi all, sorry if this is doc'ed, I searched for a while and couldn't find it.
I am using the .NET SDK client and want to pass a RenderRequest object and specify the language.
If I post this via Postman to api/report, it renders in German like I expect:
{ "template": { "shortid" : "HkaCcar-M" }, "data": { "TestId": 17 }, "options": {"language": "de"} }
But, I'm not sure where on the RenderRequest object to specify the language. The RenderOptions object has no Language prop, but it does have "Base" which is a string, so I tried:
var request = new RenderRequest
{
Template = new Template { Shortid = "HkaCcar-M" },
Data = new { TestId = 17 },
Options = new RenderOptions
{
Base = "{\"language\": \"de\"}"
}
};
var report = await rs.RenderAsync(request);
But, no luck, I got the default language (en) for the template. Is there a way to do this via the RenderRequest object?
Thanks,
Keith
Makes sense. Thanks! And, let me know if you need anything.
Great, thanks bjrmatos! I set those images to be public for a year, so we should be good there.
I looked at the issue, and tried to use unecoded urls and it seemed to be the same:
https://playground.jsreport.net/studio/workspace/ryMZv1UdM/7
Though, they may get encoded again after the binding resolution.
Dang, I lied. It doesn't work in src directly either! I had the wrong image link. New fiddle showing that:
https://playground.jsreport.net/studio/workspace/ryMZv1UdM/5