Telerik Forums
Reporting Forum
3 answers
218 views

Greetings All!
I just started using Telerik Reporting Q1 2014 SP1 (8.0.14.507) and am having a hair-pulling issue regarding report parameters. I have 5 report parameters on the report, and I am passing them values via an ASP.NET 4.5 page just prior to showing the report viewer:

01.protected void Page_Load(object sender, EventArgs e)
02.        {
03.            if (!Page.IsPostBack)
04.            {
05.                // TEMPORARY!!! Only Use For Development if viewing this page directly!!
06.                //Session["REPORT_REPAIR_ID"] = 7;
07. 
08.                if (Session["REPORT_REPAIR_ID"] != null)
09.                {
10.                    TypeReportSource src = new TypeReportSource();
11.                     
12.                    src.TypeName = "Halliburton.DBS.AssetRepairTracker.Reports.RepairOrder, Halliburton.DBS.AssetRepairTracker";
13. 
14.                    src.Parameters.Add(new Telerik.Reporting.Parameter("ReportID", Convert.ToInt32(Session["REPORT_REPAIR_ID"])));
15.                    src.Parameters.Add(new Telerik.Reporting.Parameter("MfgConnection",
16.                                                                        WebConfigurationManager.ConnectionStrings["ManufactureSupport"].ConnectionString));
17.                    src.Parameters.Add(new Telerik.Reporting.Parameter("AssetConnection",
18.                                                                        WebConfigurationManager.ConnectionStrings["AssetRepair"].ConnectionString));
19.                    src.Parameters.Add(new Telerik.Reporting.Parameter("DBProvider", WebConfigurationManager.ConnectionStrings["AssetRepair"].ProviderName));
20.                    src.Parameters.Add(new Telerik.Reporting.Parameter("CryptoKey", this.CryptoKey));
21. 
22.                    this.trvReportViewer.ReportSource = src;
23.                }
24.                else
25.                    throw new Exception("Bad Redirect");
26.            }
27.        }

However when the report is initialized, and I peak at the parameter collection, all the parameters are null (or empty). This is causing an invalid parameter value exception when the parameters validate (because I have AllowNull = false)
(See attached screenshots)




Peter
Telerik team
 answered on 18 Jun 2014
2 answers
285 views
So I am working on a proof of concept application that uses the HTML5 report viewer to display reports on a server. I am using sub-reports and drill-through reports quite a bit and it raises a question for me, or perhaps more accurately a concern. The reports obviously work just fine if they're in the same directory, however it would be fairly easy to forget to place them in the same location on the server and or just leave one out which would obviously cause that part of the report to fail. My question is what kind of alternatives (if any) do I have to add the same type of functionality without needing separate files. 

Ideally I'd like it to be something to the effect of display a report that has a link, when you click on the link the report looks inside itself and uses information that is there to hide all the old stuff and display new information (from a different data source) and the report viewer would have the 'history' so that navigating back would revert all those changes with the back arrow. I imagine that it's possible to do with a visibility toggle, but I'm not sure if that's what I should be looking into. Any advice would be appreciated, and I hope that I made it clear enough what I'm looking for.

-Randy
Nasko
Telerik team
 answered on 17 Jun 2014
2 answers
93 views
Hi,   

I was trying first impmentation Telerik Reporting that was working in Development environment (VS 2010).
 When I was try to deployed  my application on  IIS (version 7.5.7600.16385) +Windows Server2008 
 but it stopped working and I am getting the following error like
Server Error in '/' Application

"The http handler needed by the Report Viewer has not been
registered in the application's web.config file.  Add <add verb="*"
path="Telerik.ReportViewer.axd" type =
"Telerik.ReportViewer.WebForms.HttpHandler,
Telerik.ReportViewer.WebForms, Version=8.0.14.507, Culture=neutral,
PublicKeyToken=a9d7983dfcc261be" /> to the system.web/httpHandlers
section of the configuration file."

i am frustrate , still no luck after lots of R&D

Please help to resolved this ,quick help will be really appreciated ..!!

FYI --i was followed  the steps from here 
http://www.youtube.com/watch?v=t-iA05KpDFM

Thank you
Yashwant
Top achievements
Rank 1
 answered on 17 Jun 2014
1 answer
108 views
Hi everybody,

i am currently testing to replace Crystal Reports in our ReportViewer Application with Telerik Reporting, but still having some issues.

In our Application are a lot of reports and so there is a report template class. A load function takes the filename of the Report Definition File as a parameter and the Report Document is created. Afterwards it is bound to a dataset and passed to ReportViewer Control.

As i understand Telerik Reporting there are no Report Definition Files, just c# classes, which include the definitions. My problem is, that i want to instanciate the Report by it's name and then pass it to the ReportViewer, so i don't have to make major changes in the code. Is their a way to create a neutral Report object (Telerik.Reporting.Report) and bind it to a Report Class afterwards? If have tried to use TypeReportSource and set the TypeName Property, but without success until now.

I only succeeded on creating a sample application, where i created an instance of my own report class and filled it with a dataset. But i don't know how to integrate it in the code of our ReportViewer this way.

P.S.: I am using Telerik Reporting v8.0 Trial Verision with Visual Studio 2010.

Kind regards
David
David
Top achievements
Rank 1
 answered on 17 Jun 2014
2 answers
80 views
Hi,
i have a date time range selection with 24 hour time format. Start date have default time of "00:00" and end date have default time of "23:59". I have prepared a demo here http://trykendoui.telerik.com/UfEG/2 . Follow exact Step to generate the error :

 1. Select 19/5/2014 as start date, until this point the end date is still 11/06/2014 23:59.
 2. Click on the "end date" date selector and go to May month and click on 30th.
 3. The date changes to 30th, but time also changes to 00:00.

I want the end date time to remain "23:59" until the user doesn't change it intentionally.

Thanks.
Vladimir Iliev
Telerik team
 answered on 17 Jun 2014
3 answers
520 views
So I've got what I feel is a decent understanding of the 'Available Values' part of the report parameter property. I have a working query that is pulling multiple values from a table and displaying them properly. My question is (without altering the database) how can I add another value to the options? Basically if the query is pulling back 'foo' and 'bar', I want to also give the user the option for 'All'. Right now the only things that are being returned from the DB is 'foo' and 'bar', I want just tack on the option for 'All' without changing the database.
Randy
Top achievements
Rank 1
 answered on 16 Jun 2014
3 answers
604 views
I have been reading the following thread:

http://www.telerik.com/forums/mhtml-export-in-e-mail-body

It appears to suggest that sending a Telerik report as embedded HTML/MHTML within the body of an email (using .NET) may be possible, however there is not a full code sample for this and it is suggested it may be tricky to do.

Is this possible with the current version of reporting "Q1 2014 SP1"? Can you supply a full code sample of how to generated the necessary files, and how to link to an email using MailMessage in .NET?

Thanks

Ian

Stef
Telerik team
 answered on 16 Jun 2014
2 answers
35 views
Hi,

I am working on a report and I use a Map Wizard to represent the dots.

I have set the initial zoom but I would like the user to zoom even more into the map to appreciate where exactly the dots are located, but zoom options don't appear on the preview.

Is there any way of showing the zoom buttons on the map at preview time?

Thanks for any help with this!
Ivan Hristov
Telerik team
 answered on 16 Jun 2014
1 answer
172 views
hi,

          was wondering if it is possible to have a custom email button on web telerik reportviewer control?, if not possible what are the alternative ways ?
KS
Top achievements
Rank 1
 answered on 16 Jun 2014
1 answer
68 views
Hello,

I am using a Crosstab Wizard in a Telerik Report. I have had interactivity to some cells and you can navigate to a report when pressing these cells.
It works perfectly on the preview but not on the Html preview and I think this is the reason why it doesn't work in my web site demo.

Any ideas how to solve it?

Thanks in advance!
Stef
Telerik team
 answered on 13 Jun 2014
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?