Closed shawty closed 4 years ago
The problem is that you use Recipe.PhantomPdf
and this recipe isn't part of the jsreport v2. You should use the Recipe.ChromePdf
. See the default recipes marked here https://jsreport.net/learn/recipes
I apologize for the meaningless error message. We will check why it is so bad.
Also, I would recommend trying using pre-release binary jsreport.Binary@2.6.2-beta2
. There are some important fixes.
I am closing this, feel free to comment further if you find other problems.
Hi pofider thanks for that. Can you possibly mention this fact in the video then, as I feel many like me will use that as their first "test" into seeing if the toolkit is of use to them.
It looks like a VERY promising system, and I absolutely want to use it, but this first experience was not a good one :-)
Yes, I wrote it at least to the video description as youtube doesn't allow me to put a text directly to the existing video.
I don't know if you are aware, just for reference :-) It's easy to add subtitles to a video now on YT, and you don't have to edit the video.
You simply provide a text file with lines with a time and the text in EG:
00:30-00:45 - Hello and Welcome to JsReport
And that text will stay on screen over the video for 15 seconds starting at 30 seconds. The sub titles don't have to match what you say in the video, and when you embed the video in a web page, you can actually set (I think) something like &subtitles=1 or similar on the URL to turn them on automatically.
I know this, because I'm deaf, so I've done a lot of research into how it all works.
Thanks again ... I have my test app(s) working now, my next test is to test them on a linux install :-)
Not a problem, but I have one more quick question if I may, I'll open a new issue if you want me too.
When producing the PDF, how do I get the ChromePdf recipe to produce an A4 size document. Currently everything it produces is the USA "Letter Size" equivalent and I need to produce UK/Europe A4 sized documents.
I've been through the docs here: https://jsreport.net/learn/dotnet-local a few times and can't see anything that tells me otherwise.
Hm, it should be by default A4. However you can explicitely set page size here
and use something like
rs.renderAsync(new RenderRequest {
Template = new Template {
....,
Chrome = new Chrome {
Format = "A4"
}
}
}
Btw I would strongly recommend playing the first just with the full jsreport running with node.js. Play with the studio and get the idea of its capabilities. Just afterward switch to the .net because of integration.
Thanks, yes I have been playing with the studio, but the problem is I have a boss breathing down my neck that wants to see a printed A4 document asap :-) I'm sure you know the score :-D
Trying to get started with JsReport.NET and can't even get the firt example working. All I get when running the code is the following exception:
Here's what I see in visual Studio:
The code I'm testing is exactly the same as is in the intro video on the .NET sdk web page:
I have installed the latest JsReport NuGet packages:
and am targeting Dot Net Core 3.1:
Which automatically activates the C#8 compiler.
I'm running in Visual Studio 2019 Community Preview
My app console outputs:
My Node and Npm versions are as follows:
Running on a 24 core Intel Xeon workstation with 20gb of Ram under Windows 10 X64 V1809