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
ubaid_kv  
#1 Posted : Friday, March 6, 2020 4:07:59 AM(UTC)
ubaid_kv

Rank: Newbie

Groups: Registered
Joined: 2/18/2020(UTC)
Posts: 3

SealLibrary Assembly

If you have a project referencing the SealLibrary.dll assembly, you can execute a report with the following code (got from the TestAndSamples project of the solution).

Repository repository = Repository.Create();
Report report = Report.LoadFromFile(@"C:\ProgramData\Seal Report Repository\Reports\Search - Orders.srex", repository);
ReportExecution execution = new ReportExecution() { Report = report };
execution.Execute();
while (report.IsExecuting) {
System.Threading.Thread.Sleep(100);
}
string resultPath = execution.GenerateHTMLResult();
Process.Start(resultPath); //result contains the file path of the HTML report result
ubaid_kv  
#2 Posted : Friday, March 6, 2020 4:09:28 AM(UTC)
ubaid_kv

Rank: Newbie

Groups: Registered
Joined: 2/18/2020(UTC)
Posts: 3

How to integrate my report in my ASP .Net MVC Application?
epf  
#3 Posted : Friday, March 6, 2020 6:53:36 AM(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)
You can check https://sealreport.org/Recipes#lineIntegration
If you have another experience, thank you to share it...
Users browsing this topic
Guest (2)
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.