logo

Warning: The forum is now for consultation only. Please use GitHub Discussions to post any questions or comments.


Welcome Guest ! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
pieral  
#1 Posted : Tuesday, July 5, 2022 2:03:46 PM(UTC)
pieral

Rank: Newbie

Groups: Registered
Joined: 7/5/2022(UTC)
Posts: 2

hello, maybe a silly question (I'm new to Seal), but is it possible to pre-compile .cshtml files used for reports ?

My goal is to speed up the execution of the report generator.

My .net core 6 project embeds SealReportLibrary.NETCore 6.5.0,

I was thinking of using this :
https://docs.microsoft.c...0&tabs=visual-studio

Thanks
Pierre

Edited by user Tuesday, July 5, 2022 2:07:36 PM(UTC)  | Reason: Not specified

epf  
#2 Posted : Wednesday, July 6, 2022 12:44:25 PM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 1,209
Switzerland

Thanks: 14 times
Was thanked: 206 time(s) in 199 post(s)
There is no pre-compile option in the current version (may be a feature request ?).
The compiled assemblies are cached anyway by the razor engine, thus once compiled, the next call performed used the compiled version (for the same script).
This explain why the first execution may take time, but this is not relevant for the Web Report Server if it remains up.

Note that the use of .Net Core 6 requires Seal Report 6.6
pieral  
#3 Posted : Friday, July 8, 2022 1:34:39 PM(UTC)
pieral

Rank: Newbie

Groups: Registered
Joined: 7/5/2022(UTC)
Posts: 2

Hi, thank you it's very clear. I will make a feature request indeed.

Unfortunately, we don't use the Web Report Server, because we would have to install it for all our customers.

We have several problems related to the architecture of our application:
- SealReport includes Razor Engine with Razor.Language 2.2.0 as a dependency, yet we have another subproject including Razor.Language 6.0.2 -> Nuget hell when building the main project,
- To get around this problem, we created a "reportbuilder.exe" from our reporting subproject, including SealReport. But every time the main project runs reportbuilder.exe, the Razor Engine recompiles the templates for each report generation, the generation time is about 30 seconds.

Have a nice day
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.