Telerik Forums
Reporting Forum
5 answers
331 views

Hello again,

could it be that the TElerik Reporting Html 5 Service is not compatible to the current Microsoft.WebAPI (5.0)?
- I created an empty Asp.net Application (WebForms) in VS2013,
- added the Telerik.Reporting dlls via filesystem
- and the Microsoft.WebAPI via nuget.
- configure the reporting routes in the global.asax /APP_START:
ReportsControllerConfiguration.RegisterRoutes(System.Web.Http.GlobalConfiguration.Configuration);
- Start the WebApp

The application throws an exception:

Die Datei oder Assembly "System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" oder eine Abhängigkeit davon wurde nicht gefunden. Die gefundene Manifestdefinition der Assembly stimmt nicht mit dem Assemblyverweis überein. (Ausnahme von HRESULT: 0x80131040)

The same problem arises when using the default visual studio webforms template which includes/defaults to the current Microsoft.AspNet.WebAPI (5.0)

I tried to download the latest internal build but the link (
http://www.telerik.com/downloads/nightbuildfiles/dkkm/Telerik_Reporting_Q3_2013_7.2.13.1105_DEV.msi)

only points to a moved resource which redirects to the  accounts/download.aspx

To reproduce the problem just follow the steps above in a VS2013 instance

THank you for your assistance.
Regards,
Kris


Yegor
Top achievements
Rank 1
 answered on 15 May 2014
2 answers
69 views
Hi,
I am considering buying your reporting package, to html5 project in durandal.
I wanted to ask a few questions: 
1. I installed the trial version and tried to add your report to my project, and in the add report wizard in choosing data source I do not accept the types to choose from, its just empty window . What could be the problem? 

2. Can I link the data source for dynamic connection string / comes in the configuration? 

3. I tried to print a report of your sample project in html5 demo but instead printing is performed , pdf file Download.
What could be the reason for this? Have defined a default printer on the computer - control panel, but it did not help. 

4.Whether you can edit the  sql query- select sentence at runtime (by user search/filter/order.. on Client)?

I would be happy if you answer me as soon as possible,

It is urgent to me to decide whether your financial tool answer my needs,

Thank you!
Nasko
Telerik team
 answered on 14 May 2014
2 answers
336 views
Hi,

I'm with this problem in a report that I am unable to solve the problem 

I have these command gives the error and where this is 



protected void Form1_LoadCompleted_1()
{
try
            {
                System.Xml.XmlReaderSettings settings = new System.Xml.XmlReaderSettings();
                settings.IgnoreWhitespace = true;
                System.Xml.XmlReader xmlReader = System.Xml.XmlReader.Create(this.MapPath("Rel_proposta_teste.trdx"), settings);


                Telerik.Reporting.XmlSerialization.ReportXmlSerializer xmlSerializer = new Telerik.Reporting.XmlSerialization.ReportXmlSerializer();
                Telerik.Reporting.Report report = (Telerik.Reporting.Report)xmlSerializer.Deserialize(xmlReader);
                Rel.SetReportConnectionString(report, Convert.ToString(((Databases)Application["Databases"]).DataBaseList["Bdescala"].StringConnection)); <<<here problem>>>
                report.ReportParameters["Param_idproposta"].Value = Param_idproposta_inicio;


                // Atenção = altere o parâmetro “pld_entidade” para o parâmetro que vc criou no Reporting Telerik. 

                this.ReportViewer1.ReportSource = new Telerik.Reporting.InstanceReportSource
               {
                   ReportDocument = report,
               };

            }
            catch (Exception ex)
            {
                labError.Text = ex.Message.ToString();
            }
}


public partial class Rel : System.Web.UI.Page
{

public static void SetReportConnectionString(Telerik.Reporting.Report reportDocument, String connectionString)
        {
            Telerik.Reporting.SqlDataSource sds = (Telerik.Reporting.SqlDataSource)reportDocument.DataSource;
            if (sds != null)
                sds.ConnectionString = connectionString;
            SetReportConnectionString(reportDocument.Items, connectionString);
        }
        public static void SetReportConnectionString(Telerik.Reporting.ReportItemBase.ItemCollection items, String connectionString)
        {
            foreach (Telerik.Reporting.ReportItemBase ib in items)
            {
                if (ib.Items != null)
                {
                    SetReportConnectionString(ib.Items, connectionString);
                }
                Type type = ib.GetType();
                System.Reflection.PropertyInfo dataSourceProperty = type.GetProperty("DataSource");
                if (dataSourceProperty == null)
                    continue;
                var dataSource = dataSourceProperty.GetValue(ib, null) as Telerik.Reporting.SqlDataSource;
                dataSource.ConnectionString = connectionString;
            }
        }

}

The report is attached

thank you

NIgri
KS
Top achievements
Rank 1
 answered on 14 May 2014
1 answer
162 views
Hi, I'm still new to this, and my question seems to be really easy but i couldn't find the answer for it. Basically, i want to display the value of the column on the top of the column just like the picture below. Is there an easy way to do this? 
Ivan Hristov
Telerik team
 answered on 14 May 2014
4 answers
619 views
Hi,

Does anyone have a sample Project of how to create a Report Programatically (VB preferably).  I need to create reports completely from a set of parameters defined by the user.

I have tried working through the documentation section, but the parts there are too brief to let me work out the complete sequence of what I need to do, and if anyone has a sample of how this could be done to create Header, Group Header, Detail, Group Footer and Footer sections that would be great.

David Penny
Nasko
Telerik team
 answered on 13 May 2014
1 answer
77 views
I am new to Teleric and like the product but the documentation and samples need alot of work.

I have created a trdx file and have it using drillthrough. I want to use the Viewer on a form in my application  but do not see how or an example of doing this.

Can someone please point me to a solid example?

Cheers,
Brent McCaw
Nasko
Telerik team
 answered on 13 May 2014
1 answer
128 views
Hi. I've been trying to localize the (WPF) report viewer strings, and while most of it is done, I still have a problem with a few items.
Namely, I can't get the localization to work with one particular tooltip - the one that shows when the user hovers the mouse over the red validation error indicator (see attachment). I'm using resource files to do this, and, to my understanding, the localized string should be placed under the InvalidValueForParameter key, but this doesn't work for some reason. We're using Telerik Reporting Q1 2013.
Also, I noticed that your documentation for ITextResources <a href="http://www.telerik.com/help/reporting/allmembers_t_telerik_reportviewer_wpf_itextresources.html">here</a> does not specify the PageSetupToolTip property, nor the StopToolTip property - is this an accidental omission, or are there differences between the versions?

P.S. I also noticed that ITextResources interface doesn't contain an InvalidValueForParameter property in TR Q1 2013. Does this mean that this particular tooltip cannot be localized in this version?
Stef
Telerik team
 answered on 13 May 2014
1 answer
755 views
I know part of this has been asked and answered (many times). But my question goes a tad further and I haven't been able to find a solution to what I am looking for. I would like to know if Telerik has an identical feature to Crystal Reports' Suppress. Not similar, identical.

In Crystal Reports if you Suppress a Details section the rendered report is like the section never existed in the first place. In contrast, if I Conditionally Format a Panel in Telerik, and uncheck the Visible property, the rendered report leaves empty white space where the Panel resides (I've attached some screenshots to illustrate). Not only does this break-up the flow of a well-designed report, but a low page count is important to our customers.

It has been suggested multiple times that a Telerik Panel can perform the same behavior as a Crystal Reports Details section. So hopefully I'm just missing something. Any thoughts?

Thanks in advance!

PS - I also tried setting the same Conditional Formatting on all the Fields that I want hidden.
Nasko
Telerik team
 answered on 13 May 2014
1 answer
113 views
Hi
I just update my project to the latest version of telerik reporting and I have the following error:

Descrizione: Errore durante la compilazione di una
risorsa necessaria per soddisfare la richiesta. Rivedere i dettagli
relativi all'errore e modificare in modo appropriato il codice sorgente.

Messaggio di errore del compilatore: CS0433: Il tipo
'Telerik.ReportViewer.WebForms.ReportViewer' esiste sia in
'c:\Windows\Microsoft.NET\assembly\GAC_MSIL\Telerik.ReportViewer.WebForms\v4.0_8.0.14.507__a9d7983dfcc261be\Telerik.ReportViewer.WebForms.dll'
che in 'c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary
ASP.NET
Files\root\cf8628da\ce2d5566\assembly\dl3\686b1289\00f0b81e_7632cf01\Telerik.ReportViewer.WebForms.DLL'


Errore nel codice sorgente:

Riga 413:
Riga 414: [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Riga 415: private global::Telerik.ReportViewer.WebForms.ReportViewer @__BuildControlReportViewer1() {
Riga 416: global::Telerik.ReportViewer.WebForms.ReportViewer @__ctrl;
Riga 417:

File di origine:
c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET
Files\root\cf8628da\ce2d5566\App_Web_reportswindow.aspx.cdcab7d2.gygoq2rf.0.cs

   Riga: 415



Thanks
Stef
Telerik team
 answered on 12 May 2014
1 answer
154 views
Hi Telerik team,
I would like put filter with 2 parameters "quantity" and "operator" (like combo box). For example 100 and >, or 200 and <=.
I've tried to add parameter in report constructor:

 
1.ReportParameter item = new ReportParameter("Par1", ReportParameterType.String, ">");
2. ReportParameters.Add(item);
3. string[] myarray = new string[3] { ">", "<", "=" };
4. ReportParameters["Par1"].AvailableValues.DataSource = myarray;
5. ReportParameters["Par1"].AvailableValues.ValueMember = "=Fields.Item";
6. ReportParameters["Par1"].Visible = true;

and handle PropertyChanged Event
 
1.ReportParameters["Par1"].PropertyChanged += ProductList_PropertyChanged;

 
But when I change Par1 nothing happens.
Ok. I've handled ProductList_ItemDataBinding event, and tried to change operator:

01.void ProductList_ItemDataBinding(object sender, EventArgs e)
02.       {
03.           Console.WriteLine("Event: ItemDataBinding");
04.           Console.WriteLine("Par1: " + (string)ReportParameters["Par1"].Value);
05.           Console.WriteLine("Quantity:" + (string)ReportParameters["Liczba"].Value);
06.           switch ((string)ReportParameters["Par1"].Value)
07.           
08.          {
09.               case "<":
10.                   Filters[0].Operator = FilterOperator.LessThan;
11.                   break;
12.               case ">":
13.                   Filters[0].Operator = FilterOperator.GreaterThan;
14.                   break;
15.               case "=":
16.                   Filters[0].Operator = FilterOperator.Equal;
17.                   break;
18.               default:
19.                   break;
20.           }
21.       }
 


but when I try read parameter 
1.Console.WriteLine("Par1: " + (string)ReportParameters["Par1"].Value);

I always get what was set in constructor ">", quantity also is constant.

Probably something I don't understand but how can I read parameters, set in the report viewer? Is it even possible?
Any help is apprecitated.
Greetings,

Paweł
Stef
Telerik team
 answered on 10 May 2014
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?