Closed dorathoto closed 4 years ago
There is a problem with your streams handling. You copy jsreport report stream to the memory stream. But afterward is the stream position at the end, so when you copy to the file, there are 0 bytes to copy. You need to seek the memory stream to the beginning with
report.Content.CopyTo(ms);
ms.Seek(0, SeekOrigin.Begin);
at my startup:
at my Controller:
The Problem, it generates a blank PDF, 0kb
The example is the same as what was published on github, but there is something that doesn't work htmlContent contains the html correctly.