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

Notification

Icon
Error

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

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.
epf  
#2 Posted : Tuesday, October 18, 2016 1:05:33 PM(UTC)
epf

Rank: Administration

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

Thanks: 12 times
Was thanked: 116 time(s) in 113 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.