Telerik Forums
Reporting Forum
5 answers
173 views
Hi,

I have created a custom style to change the look of the ReportViewer in my application.  I am trying to see if I can change the text on the <select all> combo box item for a report parameter.  From what I can tell, I need to apply a style to the Telerik.ReportViewer.Silverlight.MultivalueAvailableValuesParameterModel.SelectAllItem class, but I can't figure out how to get to it from Blend.  It definitely isn't exposed by the ReportViewer class that I am currently styling.  Is there a way to change this text at this point in time?

Thanks,

Rob
Peter
Telerik team
 answered on 13 Jul 2011
2 answers
381 views
Hi,
I created a conditional formatting rules for subreport
where
expression = Fields.Item1
Operator = In
Value = 1,2,3
style.visisble = false

But the subreport still visible. If i create multiple rules using operator "=" then it works.
How can I use operator "In"?



cheekl
Top achievements
Rank 2
 answered on 13 Jul 2011
1 answer
165 views
Hey,

What are the future planning for Telerik Reporting?   I do not see a Roadmap for the upcoming Q2 releases.  When will the next version of Telerik Reporting be available, and what can I expect in the next release?


Thanks,

Charlie J. Biggs
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 13 Jul 2011
1 answer
197 views
I need to create a report that displays the details (including all children) for a single entity. I've got a method on my Object context that returns a single entity and I'm setting my entity datasource to that method. At runtime, I'd like to set the datasource in code to the current entity (which should already have all the navigation properties loaded, reducing the # of trips to the database). 

I have a few questions:

1. Is it okay that I'm setting the datasource at designtime to a method that requires a parameter, but at runtime I set it to the entity (hence, no parameters needed)?

2. How do I show the details for the child collections? I'm guessing I will need subreports, but I'm not sure how to pass the child collection over. Will I need to use the NeedDataSource event? and if so, how do I use that and will I still be able to design the report using the designer?

3. How do I show/hide data? For example, one of my fields is a boolean value. Based on true or false of this field, I would like to show/hide (collapse) a certain area that displays several other fields. I read on another thread about setting the height of the details, but my data is in a panel (which I couldn't find a height property for).
Peter
Telerik team
 answered on 12 Jul 2011
3 answers
144 views
Hello,

Parameters are not loading at first time or ReportViewer presents a "Report is unavailable or session has expired." error message. After pressing the "Refresh report" button report is always presented correctly.

It happens like once per several tries, but still and it is unacceptable in a business solution. 

Raport is generated dynamically, and all parameters are passed from ViewModel in this way:

 
private void RenderReportMethod(RenderBeginEventArgs rbea)<br>
        {
            if (rbea != null)
            {
                rbea.ParameterValues["Number"] = Invoice.Number;
               
                .....(other parameters).....
            }
        }


We've already changed the default HTTPBinding settings in the ReportViewer

ReportServiceClient IReportServiceClientFactory.Create(System.Uri remoteAddress)
        {
            var binding = new BasicHttpBinding()
            {
                MaxBufferSize = int.MaxValue,
                MaxReceivedMessageSize = int.MaxValue,
                ReceiveTimeout = new TimeSpan(0, 15, 0),
                SendTimeout = new TimeSpan(0, 15, 0)
            };

            var endpointAddress = new EndpointAddress(remoteAddress);

            return new ReportServiceClient(binding, endpointAddress);

        }


and in the webconfig where the ReportService is placed as well:

<bindings>
      <basicHttpBinding>
        <binding maxBufferSize="2147483647" maxReceivedMessageSize="2147483647">
          <readerQuotas maxStringContentLength="2147483647"/>
        </binding>
      </basicHttpBinding>
    </bindings>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="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"/>
          <endpoint
                  address="mex"
                  binding="mexHttpBinding"
                  contract="IMetadataExchange" />
        </service>
      </services>


however the problem still exists.

Any ideas?
Peter
Telerik team
 answered on 12 Jul 2011
3 answers
357 views
Hi
   I get a problem when i export report to excel. I have some records whose format is {0:p1},and them display correctly in report,but when i export it to excel, it displays in a wrong format. For example,in the report it shows as following:
    name        percentage
     lily              15%

But when i export to excel,it shows
    name        percentage
     lily              0.15

  How can i resolve this problem,thanks.
 
Steve
Telerik team
 answered on 12 Jul 2011
4 answers
656 views
How can I display headers in crosstab?
Andrew
Top achievements
Rank 1
 answered on 12 Jul 2011
1 answer
208 views
Hi,

I have created a reports class library and used report wizard to connect to DB and create the report. As a result, it created the connection string in app.config of the reports project and the dataset thus created uses the connection info from the settings file.
The issue is when I publish the application to the live server, the app.config from reports project doesn't obviously get published. I had to manually copy that. How can I work around that?

Environment: VS2008, Q3 2009, C#

Thanks,
BC.
BC
Top achievements
Rank 1
 answered on 11 Jul 2011
2 answers
195 views
I'm putting a bottom border on my list items (using a panel) to separate them, but don't want to show this border on the last item, because I have another border at the end of the list. Is there a way I can check if the record being processed is the last one, so that I can set the border to none?
Rayne
Top achievements
Rank 1
 answered on 11 Jul 2011
1 answer
84 views
Hi,

Ive created a silverlight report that based on a parameter dynamically adds some report fields in code. So in my NeedsData event on the report definition I check a parameter and create some extra fields and then set the datasource for the report.

This seems to work fine to generate and print the report but when I use the silverlight reportviewer to save as pdf (or any save as format) then it appears I get a new instance of the report on the server (I can set a breakpoint in the constructor) but never get a needsdata event call. I tried moving my code to the constructor but it seems that my parameter is not not initialized yet in the constructor.

Where would be the correct place to dynamically add some report textblocks, etc. in code so that it works for both report generation and save as?

thanks,
Adam
Peter
Telerik team
 answered on 11 Jul 2011
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?