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



Go to last post Go to first unread
#1 Posted : Tuesday, October 18, 2016 10:20:22 AM(UTC)

Rank: Newbie

Groups: Registered
Joined: 10/18/2016(UTC)
Posts: 0

Hi guys,

I evaluate this solution for one big reporting manager app for my comp, the gold scope is to use seal report in mvc. I need some help to integrate this in mvc, because is lack of documentation for .net ( or I can find ). I read some post before creating this thread:
- https://sealreport.org/f...=posts&t=102#post226
- https://sealreport.org/f...=posts&t=148#post328

but not help.
I know in version 2.1 Seal Report has some web api:
- https://sealreport.org/demo/WebInterfaceAPI.html

same thing lack of documentation or poor documentation.

I try the code from the first post, but when i call Report.LoadFromFile(@"C:\ProgramData\Seal Report Repository\Reports\Test\TestReport.srex", repository) give me exception error:
- An exception of type 'System.Exception' occurred in SealLibrary.dll but was not handled in user code. Additional information: Unable to read the file 'C:\ProgramData\Seal Report Repository\Reports\Test\TestReport.srex'.

So i need some help to integrate this report solution in my mvc solution, maybe some snippet code or some info about this it is appreciated.

I use MVC 4, .net 4.5.1, Visual studio 2015.
#2 Posted : Tuesday, October 18, 2016 1:05:33 PM(UTC)

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 819

Thanks: 14 times
Was thanked: 136 time(s) in 132 post(s)
I agree that the documentation is poor...but there are many ways to integrate the engine or the web report server into your own application.

First you should manage to make work the first sample (which has nothing to do with MVC): just load and execute a report.
The error you got: Unable to read the file 'C:\ProgramData\Seal Report Repository\Reports\Test\TestReport.srex' is perhaps related to the fact that the IIS user has no right to read files in C:\ProgramData\Seal Report Repository\Reports\Test\
so it looks like a configuration problem.

Using the web API is another approach as you might use the Seal Web Report Server from a pure JavaScript client.
You can also use the web API from .Net, check the cs files in the TestAndSamples project: they do the work.

So you have to learn depending on your requirements/architecture, your feedback is also welcomed for the community.
Users browsing this topic
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.