There is no difference for this if you run preview or not. I guess your data are different when running from your app and that is why the result is also different.
Unfortunately, there is nothing we can do about such problems as it is specific for the particular pdf renderer.
I believe you use phantom-pdf right? You can try to search phantomjs repository if there is this problem mentioned and hope there is a workaround. https://github.com/ariya/phantomjs/issues
thank you for your comment.
I wrote following code in async action.
public async Task<ContentResult> ReportTotalMonthlyValueAsync(TMVReportViewModel viewModel)
rs = new ReportingService("https://jsreport-cpro.azurewebsites.net/", "user", "password");
var report = await rs.RenderByNameAsync("TotalMonthlyValueReport", new
using (StreamReader reader = new StreamReader(report.Content))
text = reader.ReadToEnd();
when call rs.RenderByNameAsync function, this function does not return.
so i implemented it in console app and it does work.
it only does not work in mvc action.
could you help me?
Perfect..! In learning to use jsreports a while back I apparently installed the report server service on my Win10 machine. Got it uninstalled and now the ChromePDF recipe works without issue. Now it's a matter of figuring out the page formatting and CSS of the report HTML since the PDF looks way different than what the PhantomPDF recipe generated.
However, it is just one way.
You can also start extra service - jsreport or jsreportonline and integrate from .net using jsreport.Client
This separation is more complex for the set up, but a bit cleaner on the other hand.
It is up to you what you will prefer.
If you don't store templates in jsreport and send it inside the request like when using asp.net mvc razor, you can use it for free.
But you can do the same if you run full standalone jsreport. It is not related just to the jsreport.Local .net nuget package.
I figure it out.
It seem that jsreport.local relly on System.IO.Compression.
When it is missing it is not added as dependency on nuget package and this cause jsreport.exe to do not be copy. It is copied with size 0KB.
After adding package System.IO.Compression file was copied.