Telerik Forums
Reporting Forum
3 answers
84 views

Hello, Im new to coding in general and am trying to label the columns in a chart.  I have the chart displaying the data i want, but all the labels are 1,2,3, etc.  for each column. I tried using the code below but without much coding experience im not sure how to use it. I think i need something before it to make it work but im not sure.  Im also not sure where in the code this should go, does it go in the general .cs file for Telerik Reporting Item or does it go in the "details" section where the chart is located? if i can provide any more info please ask.

Chart.PlotArea.XAxis.AutoScale = false;
Chart.PlotArea.XAxis.AddRange(1, 7, 1); 
Chart.PlotArea.XAxis[0].TextBlock.Text = "Mon";
Chart.PlotArea.XAxis[1].TextBlock.Text = "Tue";
Chart.PlotArea.XAxis[2].TextBlock.Text = "Wed";
Chart.PlotArea.XAxis[3].TextBlock.Text = "Thu";
Chart.PlotArea.XAxis[4].TextBlock.Text = "Fri";
Chart.PlotArea.XAxis[5].TextBlock.Text = "Sat";
Chart.PlotArea.XAxis[6].TextBlock.Text = "Sun";
Steve
Telerik team
 answered on 19 Apr 2012
2 answers
120 views
Hi,

I'm facing a little problem. I've updated my telerik's DLLs today (ASP.NET AJAX & Reporting).
Everything is working but the reporting part. Actually when i run my project, the ReportViewer works fine and i can see it beeing filled, but in visual studio i still have a warning on my tag : "Element 'ReportViewer' is a not known element.".
What's wrong with VS2010?
I let you see samples of my web.config :
<system.web>
    <compilation debug="true" targetFramework="4.0">
      <assemblies>
        <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add assembly="Telerik.ReportViewer.WebForms, Version=6.0.12.215, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" />
        <add assembly="Telerik.Reporting, Version=6.0.12.215, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" />
      </assemblies>
    </compilation>
 
...
 
<pages>
    <controls>
      <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />
      <add tagPrefix="tlkReporting" namespace="Telerik.ReportViewer.WebForms" assembly="Telerik.ReportViewer.WebForms"/>
    </controls>
And there is my .aspx tag :
<tlkReporting:ReportViewer ID="ReportViewer1" runat="server" Height="500px" Width="100%" Visible="False" />
I don't understand what's going on :/
If anyone could help me it would be great, thanks in advance
Julien
Top achievements
Rank 1
 answered on 18 Apr 2012
1 answer
60 views
Im working with a bar chart in VS 2010 with Telerik reporting Q3 2011, Is it possible to reposition the Datagroupcolumn to appear outside the chart area? or can it be moved to the corner of the chart somewhere? if neither can be done is there a way to make it not appear and assign the labels given to each bar of data? Ive attached a screenshot to show what i am talking about.
Steve
Telerik team
 answered on 18 Apr 2012
3 answers
117 views

 

When publishing to the live server the telerik reports do not have Excel and PDF exporting options available in the web report viewer. Works fine on testing server.

I am using the latest demo version.

How can this be fixed?

Steve
Telerik team
 answered on 18 Apr 2012
4 answers
304 views
Create an IEnumerable<incid> (linq to sql) and put in this.DataSource 
bound to the consistency of the columns.
In the same collection of data is displayed then no.
Moreover, this same collection in DataGrid WPF 3.5 displays correctly. 

    public class incid
    {
        public string ID { get; set; }
        public string pubDate { get; set; }
        public string directoryIncidentType { get; set; }
        public string directoryReactionState { get; set; }
        public string strAddress { get; set; }
        public string strDDS { set; get; }
    }

http://savepic.net/2625578.htm  (screenshot)

Trace.Write:
An exception has occurred while processing '' item:
Telerik.Reporting.Expressions.InvalidExpressionException: The expression contains object 'ex_ID' that is not defined in the current context.
   в Telerik.Reporting.Processing.Expressions.FieldsNode.Eval(Object data, Object context)
   в Telerik.Reporting.Processing.ReportItemBase.Evaluate(Object value, Object data)
   в Telerik.Reporting.Processing.ReportItemBase.Evaluate(Object value)
   в Telerik.Reporting.Processing.TextBox.ProcessItem()
   в Telerik.Reporting.Processing.ReportItemBase.Process(DataMember data)

all fields are filled with collections.
using the latest version of the demo. 


trase.write
pavel
Top achievements
Rank 1
 answered on 18 Apr 2012
1 answer
122 views

Hi,

I am using Telerik Reporting Q2 2011 with Silverlight 4. In NeedDataSource event I am hiding a field at run-time if the data source returns a “Null” value for it. It works fine and report viewer does not show that field. However, when I export the report in any format then the exported file contains this field.

I also tried to do it in other way and set visible = false at design time for the field and set Visible = true at run-time, if data source have value for it. It displays the field successfully in the report viewer but does not show it at all in the exported file.

Please suggest a possible solution how I can overcome this problem.

Thanks!

Adil

Steve
Telerik team
 answered on 18 Apr 2012
4 answers
546 views
Hi there
  Can somebody please tel me how i can capture the Preview button click event. This will help me to solve lots of issues i am facing in my report development.
1. A report parameter that value should be sent to the business layer and to repopulate the report datasource based on that.
2. Is there anyway to turn off caching of report so that it always look for the code to bind datasource. 


Steve
Telerik team
 answered on 18 Apr 2012
1 answer
125 views
Hi,

After switching BrowserHttp to ClientHttp in our SL app, we got "Session Expired" problem from Telerik Report Viewer.
Any suggestions/answers will be highly appreciated.

Thanks.

Regards,
NNT
Steve
Telerik team
 answered on 18 Apr 2012
1 answer
64 views
Hi,

After switching BrowserHttp to ClientHttp in our SL app, we got "Session Expired" problem from Telerik Report Viewer.
Any suggestions/answers will be highly appreciated.

Thanks.

Regards,
NNT
Steve
Telerik team
 answered on 18 Apr 2012
1 answer
184 views
Hi.. I have the following code with is throwing an out of memory exception.
The report returns just 300 records.. (12 fields)   and only 10 records 'hit' this code to load an image.
Any ideas? 

   private void pictureBox1_ItemDataBinding(object sender, EventArgs e)
        {
           Telerik.Reporting.Processing.ReportItemBase itemBase = (Telerik.Reporting.Processing.ReportItemBase)sender;
           string file = itemBase.DataObject["PHOTO_filename"] as string;




           if (!String.IsNullOrEmpty(file) && File.Exists("S:\\Conference\\photos_noncrm\\" + file))
           {
               Image image1 = Image.FromFile(@"S:\\Conference\\photos_noncrm\\" + file);


               this.pictureBox1.Value = image1;
           }
           else
           {


               this.pictureBox1.Value = "=Fields.PHOTO";


           }
        }
Petio Petkov
Telerik team
 answered on 17 Apr 2012
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?