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
Hi all,
Here is a fiddle with a couple of bound image urls:
https://playground.jsreport.net/studio/workspace/ryMZv1UdM/3
The urls are from images in an Azure blob container with the embedded SAS security. They render fine in HTML always. Most of the time in Phantom-PDF recipe, but consistently won't with Chrome-PDF.
It's consistently the same url, position in the template doesn't seem to matter. If it's not bound from json, they both work, even in Chrome PDF.
I'm not sure what to try next to debug this. Does anyone have any ideas?
Thanks in advance!
Keith
Thanks @jan_blaha. I am coming to the same realization. :)
Hi Jan, is there a github issue to subscribe to for the UseBinary performance relative to AsWebServer? We are going to be deploying a single report with that approach soon, but will ultimately be purchasing and running 20-30 reports by spring time. So, we are curious on timing, or if it would make more sense to use a standalone server at that point. Thanks!