ChromePdf recipe option not available in .NET jsreport sdk
-
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
-
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
-
I've released the nuget just now.
https://github.com/jsreport/jsreport-dotnet-types/releases/tag/1.10.2
-
Great, thanks! Will update this week.
-
After updating to the newest Types, do you have to manually install jsreport-chrome-pdf using npm as well? I'm getting the generic "One or more errors have occured" exception.
-
@macarson123 chrome-pdf won't work with
jsreport.Local
v1. We are working on update to v2 which will include chrome pdf by default. Subscribe here https://github.com/jsreport/jsreport-dotnet/issues/21
If you are in urgent need using chrome-pdf. Consider using standalone on-prem jsreport as separate service and usejsreport.Client
nuget to connect to it.
-
Thanks @jan_blaha ! Any ETA on v2? I know, that was probably the worse question ever, ha!
-
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.