Telerik Forums
Reporting Forum
1 answer
228 views
Dear

I am building the Chart in the Reporting, i am manually binding the data using a data table, in that total 3 columns i want to set one to X axis and other to Y axis and another to Secondary Y axis,

I am tring to bind it, but its not taking the Secondary Y axis...

I am using in this manner
 rpt.Chart1.Series(0).PlotArea.YAxis.YAxisType = Telerik.Charting.ChartYAxisType.Secondary

Waiting For the Replay...

Thanks 
Purna
Elian
Telerik team
 answered on 25 Nov 2011
1 answer
252 views
I am getting WCF service exception when I am trying to add huge data to report parameter, if we send small chunk of data its working fine. do verify my code and suggest me the right way to add parameter data. Added web.config setting along with the reportviewer code.
<bindings>
      <customBinding>
        <binding name="BinaryHttpBinding">
          <binaryMessageEncoding>
            <readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647"
              maxBytesPerRead="2147483647" maxNameTableCharCount="16384" />
          </binaryMessageEncoding>
          <httpTransport maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" />
        </binding>
      </customBinding>
</bindings>

public partial class ReportViewer : Page, IReportServiceClientFactory
   {
       public ReportSettingsDTO ReportParametersObject { get; set; }
       public ReportViewer()
       {
           InitializeComponent();
           this.rptViewer.ReportServiceClientFactory = this;
           this.rptViewer.Report = "WebClient.Reports.TestReport, WebClient";
           this.rptViewer.RenderBegin += new RenderBeginEventHandler(rptViewer_RenderBegin);
       }
 
       void rptViewer_RenderBegin(object sender, RenderBeginEventArgs args)
       {
           args.ParameterValues["ParameterObject"] = serialize();
       }
       public string serialize()
       {
           MemoryStream ms = new MemoryStream();
 
           // Serializer the User object to the stream.
           DataContractSerializer ser = new DataContractSerializer(typeof(ReportSettingsDTO));
           ser.WriteObject(ms, ReportParametersObject);
           byte[] array = ms.ToArray();
           ms.Close();
           return Encoding.UTF8.GetString(array, 0, array.Length);
       }
 
       #region IReportServiceClientFactory Members
 
       ReportServiceClient IReportServiceClientFactory.Create(System.Uri remoteAddress)
       {
           var binding = new BasicHttpBinding()
           {
               TransferMode = System.ServiceModel.TransferMode.Buffered,
               MaxBufferSize = int.MaxValue,
               MaxReceivedMessageSize = int.MaxValue,
               OpenTimeout = new TimeSpan(0, 15, 0),
               ReceiveTimeout = new TimeSpan(0, 15, 0),
               SendTimeout = new TimeSpan(0, 15, 0)
           };
 
           var endpointAddress = new EndpointAddress(remoteAddress);
 
           return new ReportServiceClient(binding, endpointAddress);
       }
 
 
       #endregion
   }
Steve
Telerik team
 answered on 25 Nov 2011
1 answer
62 views
hi !
can any one please guide me that how to pass parameters in telerik , please also give any example so that i can easily understand it , as i am very new in telerik reporting .

Best Regards

Waqas
Steve
Telerik team
 answered on 25 Nov 2011
3 answers
164 views
Hello, I am trying out Telerik reporting and am attempting to learn how to bind to a line Graph. Here is my situation:

-I have a table of transactions, each of which has a "category"
-I have a parameter which is a date
-I want my line graph to show the count of each "category" for each of the last 7 days. So I want a series (line) for each "Category", where my x-axis is the day (7 days ago to now)  and the y-axis is the count of transactions for that category.

My problem is that I do not know "what" categories these may be before-hand. I tried using a "pivot" in my sql query: this gives me a result set with each day as columns and counts for each category. I cannot create my line series in the design view because I don't know the categories (could be 2, 15 ect.)

Is there a way, after the chart is bound to this result set, to get that set, iterate through it, construct a "custom" result set with the "categories" as columns,  and programatically add the series to construct the chart?  Thanks so much
Elian
Telerik team
 answered on 24 Nov 2011
1 answer
48 views
Hello,

We  have application where we generate line chart. The dataset which is binded to the chart has 15 rows and 31 columns. When the columns are less chart gets rendered quickly but with more number of columns it takes almost 3-4 mins. Please let me know what can be done to resolve this issue.

Thanks.

Elian
Telerik team
 answered on 24 Nov 2011
1 answer
138 views
During installation of Telerik Reporting Q3 2011 I got the error "Setup Wizard ended prematurely" without any hints to the problem causing that error.

I've found that there was an error in XML-syntax in file:
C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config
(Opening that file in the internet-explorer gives an indication of the faulty line.)

In my case there was a question mark (?) instead of the closing quotation marks (") in the line:
<add name="Npgsql Data Provider" invariant="Npgsql"  support="FF" 
description=".Net Framework Data Provider for Postgresql Server" 
type="Npgsql.NpgsqlFactory, Npgsql, Version=2.0.11.0, Culture=neutral
PublicKeyToken=5d8b90d52f46fda7"/>

Steve
Telerik team
 answered on 24 Nov 2011
3 answers
1.0K+ views
is there any way to customize the papper size in the reports? i mean no predefined papper size on windows, i have my custom size of papper since im using a matrix dots printer
Steve
Telerik team
 answered on 24 Nov 2011
3 answers
229 views
Hi,
 I have a report that has two parameters the second is cascaded from the first, what I would like to do is to have the second parameter pick up the first value from it's available values after the collection has been populated.

For example parameter one is a list of user names and parameter two is a list of dates based on the username. I would like parameter two to have a value equal to the fist available date in it's available values collection each time that the user name is changed.

The reason for this is to allow the report to show the newest data when opened up so that the end user does not have to select a date unless they wish to view a different one.

Thanks

Chris
Peter
Telerik team
 answered on 24 Nov 2011
5 answers
217 views
I have VS2010 and SL4. I installed reporting Q2 2010. Tried to drag a report viewer on a page of a 'Silverlight Business App' and I got that error... any idea?

Furthmore. I am using WCF RIA services so will the report see the domain services as a data source? Or how would I bind the data?
Steve
Telerik team
 answered on 24 Nov 2011
1 answer
151 views

I cant seem to find an example on this site that shows changing an item (ie. TextBox) in a subreport.

I'm trying to update the textbox in the subreport, but it will not show the updated value.

I tried the following code as an example and when I debug and I can see the subreport text box. This example changes the value of all textbox items in the main report but not in the subreport.

ReportItemBase[] allTextBoxes = report.Items.Find(typeof(Telerik.Reporting.TextBox), true);
int i  = 0;
foreach (Telerik.Reporting.TextBox textBox in allTextBoxes)
{
   textBox.Value = (i++).ToString();
}


Steve
Telerik team
 answered on 24 Nov 2011
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?