且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

ASP.NET Core MVC应用程序中的Microsoft LocalReport(rdl)

更新时间:2021-10-24 03:58:23

最后,我们提出了一种完全不同的方法.

In the end we came up with a totally other approach.

我们刚刚在Windows Server上作为服务运行的.NET Framework上创建了一个名为"DocumentService"的新应用程序.该服务正在检查数据库队列中是否有新作业,如果存在,它将生成pdf结果并将其存储在数据库中.

We just created a new Application called "DocumentService" on .NET Framework running as a Service on a Windows Server. The service was checking a database if there are new jobs in the database queue and if so, it generates the pdf result and stores it in the database.

因此,Web应用程序不再负责创建pdf,它仅在数据库中添加了新行,因此标记为应创建新文档.然后,DocumentService应用程序生成了文档,Web应用程序可以访问数据库中的数据.

So the web application was not longer responsible for creating the pdf, it only added a new line in the database so mark that a new document should be created. The DocumentService app then generated the document and the web app could access the data in the database.

我们可以在我们的应用程序环境的其他部分使用此"DocumentService",因此effor是值得的.它的应用程序也是多线程的,并且可以快速,良好地工作.

We can use this "DocumentService" in other part of our application landscape and therefore the effor was worth it. It app is also multithreaded and working pretty fast and well.