Telerik Forums
Reporting Forum
3 answers
463 views

Made sure all the web.config items were there

Created a report from designer including Data Source

called the following

UriReportSource rptSource = new UriReportSource();
string tst = Server.MapPath("~/METI/HP/Reporting/TestReport.trdx");
rptSource.Uri = tst;

rptViewer.ReportSource = rptSource;
rptViewer.RefreshReport();

 Source is correct

All I get is reportviewer saying generating report and Nothing else no errors, nothing...

not 100%

What am I missing?
               

Nasko
Telerik team
 answered on 06 May 2015
3 answers
900 views

I'm using Telerik Reporting Q3 2014............I do not know why inside my aspx file says: "could not load file or assembly telerik.reporting 4.1.10.714"?.....even so the application works properly..........How can I remove that error ??

Thanks!

 

My WebConfig is:

<?xml version="1.0"?>
<!--
Nota: en lugar de editar manualmente este archivo, puede usar la
herramienta Administración de sitios web para configurar las opciones de su aplicación. Use
la opción Sitio web->Configuración de Asp.Net en Visual Studio.
Encontrará la lista completa de opciones y comentarios en
machine.config.comments ubicado normalmente en
\Windows\Microsoft.Net\Framework\vx.x\Config
-->
<configuration>
<appSettings/>
<connectionStrings>
<remove name="connCIC"/>
<add name="connCIC" connectionString="Data Source=CJFDESARROLLO;Initial Catalog=CIC_net;Persist Security Info=True;User ID=usrCIC;Password=316146" providerName="System.Data.SqlClient"/>
<!-- <add name="connCIC" connectionString="Data Source=CJFDATASTORE;Initial Catalog=CIC_net;Persist Security Info=True;User ID=usrCIC_Net;Password=usrR3m0t3Cnx; Min Pool Size=5; Max Pool Size=400;" providerName="System.Data.SqlClient"/>-->
</connectionStrings>
<!--
Para obtener una descripción de los cambios de web.config, vea http://go.microsoft.com/fwlink/?LinkId=235367.

Los siguientes atributos se pueden establecer en la etiqueta <httpRuntime>.
<system.Web>
<httpRuntime targetFramework="4.5.1" />
</system.Web>
-->
<system.web>
<httpHandlers>
<add verb="*" path="Telerik.ReportViewer.axd" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=8.2.14.1027, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"/>
</httpHandlers>
<httpRuntime executionTimeout="3600" maxRequestLength="2097151" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100"/>
<!--
Establezca debug="true" en la compilación para insertar símbolos
de depuración en la página compilada. Dado que este
proceso afecta al rendimiento, debe establecer este valor como true
durante la depuración.
-->
<compilation debug="true" defaultLanguage="c#" targetFramework="4.5.1">
<assemblies>
<add assembly="Telerik.Reporting, Version=8.2.14.1027, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"/>
</assemblies>
</compilation>
<!--
La sección <authentication> habilita la configuración
del modo de autenticación de seguridad que usa
ASP.NET para identificar a un usuario entrante.
-->
<authentication mode="Forms">
<forms protection="All" defaultUrl="inicio.aspx" loginUrl="login.aspx" requireSSL="true" timeout="120" path="/"/>
</authentication>
<authorization>
<deny users="?"/>
</authorization>
<!--
La sección <customErrors> habilita la configuración de
las acciones que se deben realizar si un error no controlado tiene lugar
durante la ejecución de una solicitud. En concreto,
permite a los desarrolladores configurar páginas de error html
que se mostrarán en lugar de un seguimiento de pila de errores.

<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
<customErrors defaultRedirect="error.aspx" mode="Off">
<error statusCode="401" redirect="unauthorized.aspx"/>
</customErrors>
<sessionState cookieless="AutoDetect" timeout="120"/>
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/>
</system.web>
<system.webServer>
<security>
<requestFiltering>
<!--This will handle requests up to 1024MB (1GB) -->
<requestLimits maxAllowedContentLength="1048576000"/>
</requestFiltering>
</security>
<defaultDocument>
<files>
<add value="inicio.aspx"/>
</files>
</defaultDocument>
</system.webServer>
<location path="olvidoPassword.aspx">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
</configuration>

 

The ASPX file is:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="REPobligaciones.aspx.cs" Inherits="REPobligaciones" %>
<%@ Register TagPrefix="headerInicio" TagName="header" Src="include/headerInicioV.ascx" %>
<%@ Register assembly="Telerik.ReportViewer.WebForms, Version=8.2.14.1027, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" namespace="Telerik.ReportViewer.WebForms" tagprefix="telerik" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head id="Head1" runat="server">
<title>TecnoVisita</title>
</head>
<headerInicio:header ID="Header" runat="server"/>
<body>
<form id="form1" runat="server">
<div>
<telerik:ReportViewer ID="ReportViewer1" runat="server" BackColor="White"
Height="600px" Width="70%">
</telerik:ReportViewer>
</div>
</form>
</body>
</html>

 

 And.......its Code is:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class REPobligaciones : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Telerik.Reporting.UriReportSource uriReportSource = new Telerik.Reporting.UriReportSource();
// Specifying an URL or a file path
uriReportSource.Uri = Server.MapPath("reportes/WEBrepObligaciones.trdx");
// Adding the initial parameter values
uriReportSource.Parameters.Add(new Telerik.Reporting.Parameter("fiIdConcurso", Page.Session["fiIdConcurso"]));
uriReportSource.Parameters.Add(new Telerik.Reporting.Parameter("fcDesComerciante", Page.Session["fcDesComerciante"]));
ReportViewer1.ReportSource = uriReportSource;
}
}

 

Stef
Telerik team
 answered on 06 May 2015
1 answer
244 views

Hi

I make Report with multi column. When i add report header in report its width is also column width how i can make report header section width equal to report width. please see the attached screenshot of report design. in blue circle is a table which is in report header section Refer to datasource1

Red circle include the table in detail section refer to datasource2

in this section when table reach at the end of the page i want to show vertically on the same page.

 How can I do this?

Nasko
Telerik team
 answered on 05 May 2015
1 answer
85 views
I have a report bound to an ObjectDataSource. Among the properties these objects have, one is itself a collection of objects. I want to display the individual values with these collections as well. I assume some combination of creating a group and a crosstab would work, but I am not seeing anything. If the property is Fields.Collection and I create a group based on that, how do I refer to the Collection's properties in the detail panel? Fields.Collection.Property or just Fields.Property?
Nasko
Telerik team
 answered on 05 May 2015
4 answers
304 views

Hi,

For an app i'm developing, the user can print several invoices selected in a list.

 The invoice report works just fine for one item. I decided to reuse this code and include them in a ReportBook object. What I can't figure is how to send the ReportBook object to the view with a ReportViewerViewModel object.

 public ActionResult Invoices(IEnumerable<int> ids)
{

     var book = new ReportBook();
     ids.ForEach(id =>
      {
           var invoiceReport = new ReportDefinitions.Invoice();
           book.Reports.Add(invoiceReport);

      });           
     var source = new InstanceReportSource {ReportDocument = book};
     var viewer = new ReportViewerViewModel();

 

     return ?
}

 If my way of doing is right, how can I pass the book to the Index view which use a ReportViewerViewModel model or resolve the report ?

Nasko
Telerik team
 answered on 05 May 2015
1 answer
196 views

I am trying to create a parent/child report for a single item, a Job, which contains Parts. 

I want to present the Job object, containing the Parts, to the Report. However, when I try to access the Parts, defined as List<Part>, I cannot access it's attributes, only the attributes of the List itself (Capacity and Count).

What am I doing wrong?

Thanks Larzeb 

  public class Job
   {
      public Job()
      {
         PartList = new List<JobPart>();
      }
 
      public int Id { get; set; }
      public string JobNumber { get; set; }
      public string Name { get; set; }
      public List<JobPart> PartList { get; set; }
      public DateTime ServiceDate { get; set; }
      public decimal SalesTaxRate { get; set; }
      public string Comments { get; set; }
}

Nasko
Telerik team
 answered on 05 May 2015
1 answer
52 views

Hi,

I need best reporting .net api for windows application which having report facility which allow me to change the different properties at runtime like setting background color of fields and lot more and also provide me different charting facility.

If any one know please suggest me..

Thank You..

Nasko
Telerik team
 answered on 05 May 2015
1 answer
318 views

I have a report bound to an ObjectDataSource. These among the properties these objects have, one is itself a collection of objects. I want to display the individual values with these collections as well. I assume some combination of creating a group and a crosstab would work, but I am not seeing anything.

 

If the property is Fields.Collection and I create a group based on that, how do I refer to the Collection's properties in the detail panel? Fields.Collection.Property or just Fields.Property?

 

Nasko
Telerik team
 answered on 05 May 2015
2 answers
395 views

Hi

i have use this link http://www.telerik.com/help/reporting/html5-report-viewer-howto-custom-parameter-editor.html to create dropdownlist for my param - it works fine if param not multivalues - but now i set param to be mutivalues but i can't get dropdownlist again i got is as list as image

so please how can i set it to let me view it as kendo dropdownlist with checkbox to let me chose more than one value ?

<div id="reportViewer1" style="height:1241px;">
    loading...
</div>
 
 <script>
        $(document).ready(function () {
            $("#reportViewer1")
                .telerik_ReportViewer({
                    serviceUrl: "/api/reports",
                    templateUrl: '/ReportViewer/templates/telerikReportViewerTemplate-9.0.15.324.html',
 
                    parameterEditors: [
                            {
                                match: function (parameter) {
                                    return Boolean(parameter.availableValues) && !parameter.multivalue;
                                },
 
                                createEditor: function (placeholder, options) {
                                    var dropDownElement = $(placeholder).html('<div></div>'),
                                              parameter,
                                              valueChangedCallback = options.parameterChanged,
                                              dropDownList;
                                    function onChange() {
                                        var val = dropDownList.value();
                                        valueChangedCallback(parameter, val);
                                    }
                                    return {
                                        beginEdit: function (param) {
                                            parameter = param;
                                            $(dropDownElement).kendoDropDownList({
                                                dataTextField: "name",
                                                dataValueField: "value",
                                                value: parameter.value,
                                                dataSource: parameter.availableValues,
                                                change: onChange,
                                                //optionLabel: "إختر الصنف ...",
                                              
                                            });
                                            dropDownList = $(dropDownElement).data("kendoDropDownList");
                                        }
                                    };
                                }
                            }],
                    reportSource: {
                        report: "Hemdan.Views.kinds.Select_Stock_BarCode, Hemdan",
                    },
                    viewMode: telerikReportViewer.ViewModes.INTERACTIVE,
                    scaleMode: telerikReportViewer.ScaleModes.SPECIFIC,
                    scale: 1.0,
                });
        });
    </script>

Ahmed
Top achievements
Rank 2
 answered on 04 May 2015
16 answers
3.0K+ views
I created a report using the stand alone designer. I am programmatically setting the report's source as such...

Dim uriReportSource As New Telerik.Reporting.UriReportSource()
  
            ' Specifying a URL or a file path
            Const Directory As String = "~/Custom/"
            Dim myPath As String = Server.MapPath(Directory & "41x_44x.trdx")
            uriReportSource.Uri = myPath
  
            Me.ReportViewer1.ReportSource = uriReportSource
            Me.ReportViewer1.DataBind()

How do I dynamically change the datasource of the report that is already loaded into my report viewer (when clicking a button or other similar event)? More detail: The report already contains it's own data source based on a sql view through the report designer component. Let's say I want to click a button on my page to dynamically switch to another sql view and then rebind the report. I already have my sql data source code, but I can't seem to find a way to attach that data source to an existing report loaded in my report viewer. Is this even possible to do?
Javier
Top achievements
Rank 1
 answered on 04 May 2015
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?