This is a migrated thread and some comments may be shown as answers.

How to link to report library?

13 Answers 366 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
J
Top achievements
Rank 2
J asked on 06 Sep 2016, 03:12 AM

I don't see how to specify the report library in the ReportsControllerBase, is this the idea?

public class ReportsController : ReportsControllerBase {     /* original from wizard -      static Telerik.Reporting.Services.ReportServiceConfiguration configurationInstance =         new Telerik.Reporting.Services.ReportServiceConfiguration         {             HostAppId = "Application1",             ReportResolver = new ReportFileResolver(HttpContext.Current.Server.MapPath("~/Reports"))                 .AddFallbackResolver(new ReportTypeResolver()),             Storage = new Telerik.Reporting.Cache.File.FileStorage(),         };*/     static Telerik.Reporting.Services.ReportServiceConfiguration configurationInstance =         new Telerik.Reporting.Services.ReportServiceConfiguration         {             HostAppId = "Application1",             ReportResolver = new ReportTypeResolver(),             Storage = new Telerik.Reporting.Cache.File.FileStorage(),         };     public ReportsController()     {         this.ReportServiceConfiguration = configurationInstance;     } }

Sorry for all the questions, it would be great to have documentation on this basic stuff.

13 Answers, 1 is accepted

Sort by
0
David
Top achievements
Rank 1
Iron
Veteran
Iron
answered on 06 Sep 2016, 09:17 PM

Are you by chance trying to use the HTML5 report viewer in a MVC project?  If this is the case  you need both a ReportsController and a CustomReportResolver class.  That class, which is inherited from IReportResolver is your implementation of a resolver which supplies the MVC controller with the HTML data produced by a given ReportDocument given its unique report key value.

I agree the online documentation was a bit obscure.  Please pay attention to the obscure note that implies your resolve method can and will be called multiple times.  You have to construct your resolve method with that in mind.  In my case I had to use a Lock statement to resolve concurrency issues.  I hate to use Locks but it proved necessary or I was re-querying the database repeatedly for data already retrieved and in memory.

In my case I managed to implement the report viewer into an large existing ASPX based project by making it a hybrid MVC and ASPX solution.  Yes a ugly "hack" however it works quite well and performs well.

 

 

0
J
Top achievements
Rank 2
answered on 07 Sep 2016, 01:05 AM

Thanks for the reply David.

At present I'm trying to have the Reporting link into a WebAPI/MVC project, any viewer is fine at present I just need to demo it to a client against their database.

I'll give the controller another go, I managed to seemingly 'accidentally' get the controller to at least display a report in one test project but it isn't working in the other. Because I've randomly stuck things in and removed them I have no idea why. Hopefully the fact that it's a WebAPI project I wont have any concurrency issues. But thanks for the heads up, I'll add that to my test plan.

It would take someone at Telerik 20 minutes to write a single page document on how to put it together, but alas no. I maybe frustrated.

 

0
David
Top achievements
Rank 1
Iron
Veteran
Iron
answered on 07 Sep 2016, 02:19 AM

I was going to provide you with a complete sample project attached to this document however it appears you cannot attach projects to posts.  

In constructing a MVC viewer for my cities "budget" program I create a "proof of concept" test project that displayed 3 reports via both the standard .aspx report viewer and the HTML5 report viewer.  While that solution contains a mixed aspx/mvc solution, you can easily see the controller and resolver I constructed.  These are extremely simplistic however you should be able to get most of what you want out of these.

Assuming you can following the following should get you to a shared link from my onedrive folder.

 

<ADMIN: Distribution of DEV assemblies in forums is not allowed - License Agreement (5)>

 

Please advise me when you get it and I will remove the file.

 

 

NOTE: Due to how the TELERIK folks construct their projects, I removed the licenses.licx file from the "properties" folder.  I did not wish to provide you with a copy of my license file.  Should you get an error compiling this project you might need to remove that file from the solution.  The telerik suite should magically add your license file to the solution.

 

0
J
Top achievements
Rank 2
answered on 07 Sep 2016, 04:15 AM

Thanks David, I've downloaded you can remove the file. I'll take a look shortly.

I guess the issue is with the documentation, it's simply wrong. Perhaps at some point it was right, I don't know, but as of now with the latest version of Reporting and MVC/WebAPI it has many errors and omissions. So while I've created a test project from scratch (after much guessing) I'm not able to carry that work over into my 'Client Demo' project.

I do appreciate your input, hopefully your project will give some ideas on what is causing all the errors.

0
Stef
Telerik team
answered on 07 Sep 2016, 09:55 AM
Hi Jon,

Please refer to my post here and in your support ticket on the same question.

Let us continue the discussion in one of the threads in order to keep a better track on the exchanged information and the progress of the issue.


Regards,
Stef
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
David
Top achievements
Rank 1
Iron
Veteran
Iron
answered on 07 Sep 2016, 01:20 PM

Stef, can you enlighten me as to how one can share code to aid folks without violating rules and regulations?  I suspect you will say to eliminate the "lib" folder and perhaps the "packages" folder.   I was not aware they were magically added to the project I built expressly to share the source with. I had performed a clean on the project and removed the licenses.licx file.  What else should I have eliminated to make the project shareable per your guidelines (which I cannot find anywhere)?  I assumed I was distributing a package which would, at worst, contain references to .DLL's which might or might not exist on the destination machine.  Your teams statement of:

<ADMIN: Distribution of DEV assemblies in forums is not allowed- License Agreement (5)>

Suggests that I did violate an agreement without knowing it.  Of course if it is your wish that nobody other than Telerik staff share code that is an option albeit one not desired.

 

 

0
J
Top achievements
Rank 2
answered on 08 Sep 2016, 01:11 AM
Telerik - I would like to second that question. Especially since my experience of the 'official' support has been so poor so far. Someone reaches out to help, in effect to do your job, and you state 'assemblies in forums is not allowed'.
0
Stef
Telerik team
answered on 08 Sep 2016, 09:08 AM
Hi Jon,

The distribution of DEV assemblies is not allowed.
Please go through the License Agreement. If there is more serious violation of the License agreement, you will be contacted by an official representative in private.

You both have purchased the product and we are more than happy to see you collaborating. Yet, please consider the channels to do it, as forums are public and anyone can download purchased by you DEV assemblies.

Our recommendation is to contact yourself privately or share your experience through the official channels:
You can share code snippets and your intellectual work in forums as well by removing code and assemblies subjects to special license (not only Telerik products, but any third-party non-free products).


Regards,
Stef
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
David
Top achievements
Rank 1
Iron
Veteran
Iron
answered on 08 Sep 2016, 02:24 PM

I guess I am a bit too plain spoken.  Your reference to the License Agreement returns a error code 500.  I assume the referenced document does not exist or is otherwise blocked.  I fully wish to not violate the "agreement" but I speak English not legalese.

Please be specific as to what "DEV assemblies" means?  Anything obtained via NuGet is public in nature. Anything in the .NET framework is public in nature.  Dll's defined by Telerik are, based upon your arguments, "restricted" in nature.  I fully endorse such a restriction, now that I have been informed of it.  

Assuming I wished to share a "solution" to a persons problems, what must I remove from the project to be "legal" in your mind.  I gather that you are basically saying:

  • Remove all non-source code aspects.  This probably means the bin, obj, and perhaps the packages folder entirely.
  • I assume a reference to a .dll is ok, at a solution level, however the DLL itself cannot be distributed.  If I in error that would imply I also have to manually remove the references leaving a broken project.
  • I assume a "using/include" is ok as it is only a text string of characters.

Am I remotely in the ballpark with the above?  What have I missed?

In this particular case Jon's issues would not have been solved by snippets.  His issues lay in how to integrate snippets obtained from the Telerik support documents into a working solution.  I too faced this same problem.  Your documentation does not present a concrete working example of how to actually display a report.  Based upon your available documents the only route supported by Telerik reporting is to create reports which contain a single data source  and are self contained, and never change.  That hardly is a real world application.  In my case I have 273 different reports, in a single project, which extract data from multiple data sources.  Some use stored procedures and interface directly with SQL Server.  Some use business objects, some merge SQL, Oracle, and various obscure ODBC data sources into a single document.  I needed a "generic" way to display a report.  Constructing 273 different viewers is out of the question.  No single Telerik document answered my questions and after many weeks I managed to kludge a working solution.

As to your comment "contact yourself privately"?  This is a forum to which we,  as users, appear using a non-email name.  We have no access to our respective emails nor would I wish it.  I would never post my email as I value the ability of not receiving junk email.  You might have access which provides you with email address information however we do not have such access.  Besides there is too much "private" communication on these boards.  Too often a promising topic ends with "lets take this discussion offline" and you never learn what the solution was.

 

0
Stef
Telerik team
answered on 08 Sep 2016, 04:42 PM
Hello David,

You are right, the link has additional 'http://' at the end - http://www.telerik.com/purchase/license-agreement/reporting-dlw-s (the correct URL).
Each Telerik product has such License agreement listing the terms and conditions for using and distributing the product. Most Telerik products are not free and there are two types of assemblies - Trial and Dev. The assembly type can be seen in the file's properties. The existence of Dev assemblies in a project implies that the product is purchased and officially downloaded.
These Dev assemblies are a subject of licensing.

You can share any custom code and settings, which you created with consideration of http://www.telerik.com/purchase/license-agreement/reporting-dlw-s (4, 5). Removing assemblies (files) from the project may be sufficient. Before uploading the project my recommendation is to assure that any other third-party paid product's are not included, regardless their licensing is not in our scope. In general, forums allow only image attachments to prevent such issues.
Personal information is not available and only you can decide whether to leave your contact details in a forum.

My recommendation is to go through the License agreement and to contact our Sales team if you have any questions on it. Please note that Telerik products may include private Nuget feeds, which are not intended for  usage by non-registered users.

About linking the information from articles, we will be glad to check the created demo project and to provide additional information. Tutorials are made to illustrate only the product features, and if an important setting or condition is missing, we would like to get feedback to correct it.

Note that we do not engage with end solutions. If someone is interested in the service, we can contact him/her on a request with our Professional services team. We can provide you technical information about the usage of the product and its features, and we can troubleshoot issues with settings.


In your case, I cannot be sure about the settings, but if you want to reuse already created viewer, the displayed report can be changed by updating the viewer's reportSource in Javascript. Modifications on a report can be done via custom resolver. To provide you more details information, we need the exact settings of the project, and the details about the usage and the expected result.

Regards,
Stef
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
J
Top achievements
Rank 2
answered on 09 Sep 2016, 12:04 AM

Given that Telerik support is so poor you've made this a serious issue. If documentation is out of date, support tickets aren't replied and there is no member to member sharing of projects exactly how would you suggest users resolve issues?

What specifically needs to be removed from the project in order for it to be shared? As far as I can see all the license details were removed only leaving public assemblies. Perhaps David and I are missing something here, what specifically needs to be removed from a project in order to share it?

0
J
Top achievements
Rank 2
answered on 09 Sep 2016, 12:05 AM

Incidentally every time I reply to a post I get the error (although it still seems to post):

Oh, no! 
Something's not right,
but we're sorting it out.
Things you can try:
Go back and try another way
Use the navigation above
Try the search bar
Head to the Homepage
Cheer up and try our products . Some of them are free!

0
Stef
Telerik team
answered on 09 Sep 2016, 05:09 PM
Hi Jon,

The project contained DLLs of purchased Telerik Reporting products. The rest of the code looks like a private work, which David is free to share with you.

All terms for distribution can be found in the License Agreement (http://www.telerik.com/purchase/license-agreement/reporting-dlw-s) or this can be discussed with our Sales team. Note that forums allow only image attachments and code blocks in plain text to be shared officially.


About getting support, depending on the situation we may got an idea of the issue even from one sentence. When the problem is not clear we need details who to reproduces it, what are the results (errors, warnings) in order to compare results, what steps are required and if visually we are looking at the same thing. The ways features can be combined are not unique and any developer can use own approach - the reason to ask for clarifications.
Your cooperation in such cases is a major factor, and without it we can only guess (which is not effective always).

Up to now, we aimed to answer all your inquiries, including these in the forum which is not officially supported. Our support lead is already informed about the opened cases due to the way you expressed frustration. If you want to share any feedback, please feel free to contact our Sales team or let me know if you want me to forward the threads to a next level management.

Regards,
Stef
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
J
Top achievements
Rank 2
Answers by
David
Top achievements
Rank 1
Iron
Veteran
Iron
J
Top achievements
Rank 2
Stef
Telerik team
Share this question
or