Telerik Forums
Reporting Forum
1 answer
165 views
I have a website that I am developing.  The site consists of 20 reports.  The list of reports available to the user would be filtered by the users security level.  I have the report names and descriptions set in an SQL Table on the server.  

I have a reportviewer.aspx page where I would like to pass the name of the report to be viewed to the viewer based on the report selected from a radgrid.  The reports themselves are created in a "reportlibrary" project in the same VS solution.  I know I can hard code the code behind to select the correct report but I don't want to recode the page everytime a new report is created.  Is there an easy way to set the report property on the reportviewer object to the name of the report:

This what I have:

Dim report1 As New ReportLibrary.rptDelinquent(parid, userid, ordnum, ordname)
Dim report2 As New ReportLibrary.rptTaxBill(parid, userid, ordnum, ordname)
If Not String.IsNullOrEmpty(oProduct.PrdReportName) Then
    Select Case UCase(Trim(oProduct.PrdReportName))
        Case "RPTDELINQUENT"
            Me.eTaxiReportViewer.Report = report1
        Case "RPTTAXBILL"
            Me.eTaxiReportViewer.Report = report2
    End Select
  
    Me.Page.Title = "eTaxi Report Viewer - " + oProduct.PrdDescription
End If


This is what I would like to do:

If Not String.IsNullOrEmpty(oProduct.PrdReportName) Then
Dim report1 As New ReportLibrary(oProduct.PrdReportName)(parid, userid, ordnum, ordname)

    
' oproduct.prdReportname would be "rptDelinquent"
    Me.eTaxiReportViewer.Report = report1 
    Me.Page.Title = "eTaxi Report Viewer - " + oProduct.PrdDescription
End If

Doug
Peter
Telerik team
 answered on 12 Oct 2010
3 answers
163 views
I want to horizontally display images in detail section. Is this possible? All image's path is coming from database.
Steve
Telerik team
 answered on 12 Oct 2010
1 answer
107 views
Hi,
I'm using Telerik Trial Reporting. I built couple of reports couple of days ago following the documentation. Today I'm having some problem. I'm following the all these steps for the same project.  The problem is I'm unable to see "Design Data Layout" wizard dialog. Any guidance please?
Steve
Telerik team
 answered on 12 Oct 2010
1 answer
84 views

Hello Telerik Team,
 

I have a question with regard to telerik reports. I am converting crystal reports to telerik reports.
As we have "Default values for nulls" and "Exceptions for nulls" (in the section expert) option in crystal reports.
Can we set like that anywhere in the telerik report.Beacuse in my telerik report if i have empty string value it will not evalute the conditional formaating correctly.

I appreciate your response.

Thank you,
Smith

Steve
Telerik team
 answered on 11 Oct 2010
5 answers
169 views
Friends,
Any idea how to do attach formatting in reporting
I want to do same thing in telerik silverlight reporting

Thanks
Shakti
Steve
Telerik team
 answered on 11 Oct 2010
3 answers
109 views
I have a computer running VS2010 x64.  The coputer also has CR 2008 installed.  I am trying to test the cyrstal reports import option as I have over 100 existing reports.  But when I select the import type of Crystal Reports, the next button remains greyed.

I have read the kb article regarding setting the dev.app.config file for the different versions of CR Reports, and I have set the runtime options as described.  But still the Next button remains greyed.

Does anyone have any ideas aht I can try next.  This really is a show stopper for me.
Steve
Telerik team
 answered on 11 Oct 2010
1 answer
408 views
In my application, I have a list of orders. I want to be able to check a box next to several of these orders and print them as a report. I am trying to do this with a Report Book. I loop through the list of orders and if it is checked, I create a report and add it to a report book. But all I get is several of the same order. Example: I want to print orders 1, 2, 3, and 4. But my report book shows orders 4, 4, 4, and 4.

Here is the print code:

 

private void Print()

{

System.Data.EntityClient.

 

EntityConnectionStringBuilder entCSB = new System.Data.EntityClient.EntityConnectionStringBuilder();

 

entCSB.ConnectionString =

 

App.CurrentApp.CurrentEnvironment.Connection;

 

Telerik.Reporting.

 

ReportBook book = new Telerik.Reporting.ReportBook();

 

 

 

 

foreach (OpenOnlineOrderDetails details in Transactions)

{

 

 

if (details.Selected)

 

{

 

book.Reports.Add(new OrderReport(entCSB.ProviderConnectionString, details.SaleTransactionID.ToString()));

 

}

}

 

AppView.Views.

 

ReportForm report = new LogiText.AppView.Views.ReportForm(book);

 

report.Show();

 

}



And this is the form with the report viewer:

public partial class ReportForm : Form  

 

{

Telerik.Reporting.

 

ReportBook book;

 

 

 

public ReportForm(Telerik.Reporting.ReportBook reportBook)

 

{

InitializeComponent();

 

 

this.book = reportBook;

 

}

 

 

private void ReportForm_Load(object sender, EventArgs e)

 

{

reportViewer1.Report =

 

this.book;

 

reportViewer1.RefreshReport();

}

 

}

 

 

Peter
Telerik team
 answered on 11 Oct 2010
1 answer
268 views
Hi.

I have a silvelright reportViewer which Report property is set to a ReportBook.   The reports to be added to this ReportBook are set during runtime and depend upon the parameters sent from SL's client.

I mean, in the ReportBook's constructor, I need to read the parameters, commit a sql command to the database and upons results, add the required reports.     Right now, I cannot read the parameters.   I tried adding a dummy report and get its parameters (which are the same as the real reports ) but they are not filled with the values from the client.


Thanks,


Iosu.
Peter
Telerik team
 answered on 11 Oct 2010
3 answers
148 views
Here's a strange one...

When we produce a pdf report from a PC, all fields show 100% of the time - never a problem.  But some mac users are reporting SOME fields as 'invisible' (ie not showing) on a PDF report. <scratching head>

We'll try to narrow down as to what Macs/versions/browsers are doing this, but has the Telerik Reporting team ever heard of such a strange thing?  I thought PDF's were supposed to be 'universal' documents.  Note: they can see other fields no problem when they open the PDF usign a Mac -- it's just SOME fields are missing for them on Macs (the SAME fields that ALWAYS appear then pulling the same report form a PC)

Are you guys aware of any Mac/PDF bugs/limitations in Reporting?

Thanks,
Mike
M
Top achievements
Rank 1
 answered on 11 Oct 2010
11 answers
210 views

Hello,

We have a problem with Telerik Reporting.  We need make a report accessible trought RIA services in silverlight application from remote computer. Problem is that on local computer is all right, but on remote computer not.  We would like to configure our ISS on WindowsAutentification and set impersonate on true. But we can’t connect  to reporting service. The Error message wich we get is bellow:

IIS specified authentication schemes 'IntegratedWindowsAuthentication, Anonymous', but the binding only supports specification of exactly one authentication scheme. Valid authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous. Change the IIS settings so that only a single authentication scheme is used.

Our web.config containts this configuration:

<?xml version="1.0"?>

<!--

  For more information on how to configure your ASP.NET application, please visit

  http://go.microsoft.com/fwlink/?LinkId=169433

  -->

<configuration>

  <system.webServer>

    <modules runAllManagedModulesForAllRequests="true">

      <add name="DomainServiceModule" preCondition="managedHandler"

           type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />

   

      </modules>

   

    <validation validateIntegratedModeConfiguration="false" />

  </system.webServer>

 

  <system.web>

    <compilation debug="true" targetFramework="4.0" />

    <customErrors mode="Off"/>

    <authentication mode="Windows" />

    <identity impersonate="true" />

    <httpModules>

      <add name="DomainServiceModule" type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />

    </httpModules>

     

  </system.web>

 

  <connectionStrings>

    <add name="TFSExtensionEntityDiagrams"

         connectionString="data source=(local);initial catalog=TFSExtension;user id=pokus;Password=P@s5w0rd"

         providerName="System.Data.SqlClient" />

    <!--<add name="TFSExtensionEntityDiagrams"

            connectionString="Data Source=(local);Initial Catalog=TFSExtension;Integrated Security=True"

            providerName="System.Data.SqlClient" />-->

   

    <!--<add name="ReportingLibrary.Properties.Settings.TFSExtension2"

            connectionString="Data Source=(local);Initial Catalog=TFSExtension;Integrated Security=True"

            providerName="System.Data.SqlClient" />-->

  </connectionStrings>

  <system.serviceModel>

    <serviceHostingEnvironment aspNetCompatibilityEnabled="true"

      multipleSiteBindingsEnabled="true" />

    <services>

      <service name="Telerik.Reporting.Service.ReportService" behaviorConfiguration="ReportServiceBehavior">

        <endpoint address="" binding="basicHttpBinding" contract="Telerik.Reporting.Service.IReportService">

          <identity>

            <dns value="localhost"/>

          </identity>

        </endpoint>

        <endpoint address="resources" binding="webHttpBinding" behaviorConfiguration="WebBehavior" contract="Telerik.Reporting.Service.IResourceService"/>

       

      </service>

    </services>

    <behaviors>

      <serviceBehaviors>

        <behavior name="ReportServiceBehavior">

          <serviceMetadata httpGetEnabled="true"/>

          <serviceDebug includeExceptionDetailInFaults="false"/>

        </behavior>

      </serviceBehaviors>

      <endpointBehaviors>

        <behavior name="WebBehavior">

          <webHttp/>

        </behavior>

      </endpointBehaviors>

    </behaviors>

  </system.serviceModel>

</configuration>

Nikolay Rusev
Telerik team
 answered on 11 Oct 2010
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?