Telerik Forums
Reporting Forum
1 answer
55 views
Hi,

I am using VS2010, SL4, Q1 2011 for telerik silverlight and reporting. I will to print report in my silverlight business aplication. Report (called 'BankaReport') is created on sever project of solution. When I click on the print button, which is on the silverlight page on client project, I will to open silverlight child page, which is on same side, and show report. On the server side is created ReportService.svc. There is reportviewer control on the silverlight child page. I set property that control:
 <telerik:ReportViewer x:Name="MyRV "
                                    ReportUri="ReportService.svc"
                                    Report="BankaReport">

When I clicked on the print button I give message error that say me that assembly is not  ok.
Could you give me project with example like this or show me demo.

Best regards,

Aleksandar Kovacevic
Steve
Telerik team
 answered on 22 Apr 2011
5 answers
261 views
Hi,

I'm having trouble with the Report Book feature when adding multiple reports and setting their Parameter values. I'm adding the same report multiple times to the Report Book but setting different parameter values for each report added. In short, the generated report book contains the correct number of reports but is only using one of the parameter values supplied. Thus all of the report book items are showning exactly the same thing.

I've debugged the report book when it is being created/setup and each report paramater value is as it should be. For some reason the rendered report is only using one of the paramter values for all of the report book items. It doesn't seem to make sense.

Here is my code (VB.net 3.5):

Public despatchItems As New List(Of Integer)

despatchItems is just a List of integer values that is used to set the parameter value of each report.
 

Dim
batchDespatchNoteReport As New ReportBook
 For x As Integer = 0 To despatchItems.Count - 1
     batchDespatchNoteReport.Reports.Add(New DespatchReport())
     batchDespatchNoteReport.Reports(x).ReportParameters(0).Value = despatchItems.Item(x)
     batchDespatchNoteReport.Reports(x).PageNumberingStyle = PageNumberingStyle.ResetNumberingAndCount
 Next
 batchDespatchNoteReport.DocumentName = "Despatch Note(s)"
 rptViewer.Report = batchDespatchNoteReport

I'm using reporting version (latest version): Telerik_Reporting_Q1_2011_v5_0_11_316
This is done in WPF Vb.net 3.5 SP1 with the Telerik Reporting Viewer.

Any suggestions is greatly appreciated.

Thank you for your time.
Robert
Top achievements
Rank 1
 answered on 21 Apr 2011
3 answers
83 views
I want to know if it is possible to restrict the export options per user, either programatically or in a configuration file. I want to do it per user, so the visible=false option in the web.config doesn't work for me, because that way innactivate the option for all users.

I appreciate your comments.
Greetings
greg
Top achievements
Rank 1
 answered on 21 Apr 2011
1 answer
285 views
Hi,

I'm looking for the option to add the - / + sign to column groups as shown in this example
http://demos.telerik.com/reporting/product-sales/demo.aspx
the following video doesn't show how to do this.
http://demos.telerik.com/reporting/product-sales/video.aspx

I am creating the entire crosstab in code because I have a lot of report possibilities that can be configured by the user
including the expanding and collapsing of columns (and if possible, rows)

If I'm missing something or if someone has an idea how to create this effect in code, please let me know!

Sven
Steve
Telerik team
 answered on 21 Apr 2011
1 answer
86 views
Hello,

        I have create a Pie chart with following Dataset schema


       
        CallPriorityCode   CallPriorityName  NoOfCalls
                  1                          Low                  8
                  2                          Medium            10
                  3                          High                  2
 
      I want to show Pie chart with Percentage value ( Of NoOfCalls Data) as Lable and Call Priority Name in Legend Area.


Steve
Telerik team
 answered on 21 Apr 2011
7 answers
223 views
Hi..
I have report with a CrossTab in the detail.
If I run the report with just a few columns and rows it appears fine.
If I run the report with 100+ rows and  50+ columns - The First page always appears blank....  probably because the generated crosstab is too large for the page.... ?
How can I keep the CrossTab on the First Page?  The cross tab always starts on Second Page and goes on from there.....
thanks
VH
Top achievements
Rank 1
 answered on 21 Apr 2011
1 answer
131 views
For some reason the Table Wizard is not present in the Telerik Reporting toolbox (nor any other wizards).

I'm working in VS 2005 - with Telerik Reporting 2011 Q1

Is there any way to start the Wizard without doing a drag-and-drop from the Toolbox?
It don't have admin priviledges on my computer so I have limited flexibility...

Thanks in advance for any help with this!

 - Pascal
Aaron
Top achievements
Rank 1
 answered on 20 Apr 2011
1 answer
160 views
I am experimenting with creating a multi-column report that includes a group with a header; I have set the KeepTogether property (seems to be meant for pages, not columns, but have tried anyway) to true, but the groups may still span multiple columns.  That creates the situation where the group header is, say, on the bottom of the left column (2 column report) and the details, sans a header, are on the top of the right column.

Is there any way to prevent the group from spanning multiple columns?  That is, essentially make the KeepTogether behave on columns as it does on pages?

Thanks,
Adam 
Steve
Telerik team
 answered on 20 Apr 2011
3 answers
335 views
Hi,
I'm facing a problem in programmatically creating a table. I have managed to add columns to table and the report renders fine,using this thread

:http://www.telerik.com/community/forums/reporting/telerik-reporting/quot-dynamic-quot-table-in-telerik-reports.aspx

How can i now add summations for particular column in the end of the table(the last row) programmatically?

For instance, I would only like to show summations for some of the columns,not all of them becouse some of them are not summable...

Thanks in advanace
Massimiliano Bassili
Top achievements
Rank 1
 answered on 20 Apr 2011
1 answer
211 views
Hello,

I am attempting to manually create a report in the viewmodel to bind to a WPF reportviewer control.

I cannot use the designer as I have to create the table manually. The report will accept a datasource object (in this instance a List<T> where T is a domain object), create the columns, and then populate the rows. I have done extensive research on the forums and created the column collection and even the entire table. I am unable to get it to show anything once the report is bound to the view.

Any help is appreciated.

-Josh

Here is the xaml for the report viewer:

 

 

 

<telerikReporting:ReportViewer Grid.Row="1" x:Name="ReportViewer1" Report="{Binding DataContext.AutoReport}" Width="500" Height="600" >

 

</telerikReporting:ReportViewer>


And here is the ViewModel:

 

using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using Telerik.Reporting;
using Telerik.Reporting.Drawing;
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using Telerik.Reporting;
using Telerik.Reporting.Drawing;
using System.Data.SqlClient;
using System.Data;
using System.Text;
using System.Collections;
  
namespace Client.ViewModels
{
   public class TelerikDummyReportViewModel : ReportViewModelBase
    {
        public TelerikDummyReportViewModel(ContentViewModelBase parent) : base(parent)
        {
              
        }
        #region Properties
  
         
  
       private Report _autoreport;
       public Report AutoReport
       {
           get
           {
               return _autoreport;
           }
           set
           {
               // Check if it's really a change 
               if (value == _autoreport)
                   return;
  
               // Change Report 
               _autoreport = value;
  
               // Notify attached View(s) 
               RaisePropertyChanged("AutoReport");
           }
       
       private List<user> _userDataList;
        public List<user> UserDataList 
        
            get { return _userDataList; } 
            set
            {
                _userDataList = value;
                if (_userDataList.Count() > 0)
                {
                    AutoReport = new DynamicReport(_userDataList[0]);
                    AutoReport.Report.DataSource = UserDataList;
  
                }
                RaisePropertyChanged("UserDataList");
                RaisePropertyChanged("AutoReport");
            
        }
          
  
        #endregion
        internal override void ControlLoaded()
        {
            DependencyCheck();
        }
  
        internal override void DependencyCheck()
        {
              
            GetUsers();
        }
        public void GetUsers()
        {
            ShowIsBusyMessage("Loading ...");
            AuthenticationClient.GetLPUsersCompleted += new EventHandler<GetLPUsersCompletedEventArgs>(AuthenticationClient_GetLPUsersCompleted);
            AuthenticationClient.GetLPUsersAsync();
              
        }
  
        void AuthenticationClient_GetLPUsersCompleted(object sender, GetLPUsersCompletedEventArgs e)
        {
            AuthenticationClient.GetLPUsersCompleted -= AuthenticationClient_GetLPUsersCompleted;
            if (e.Error != null)
            {
                this.HandlePrompt("Error retrieving audit activity filter.", DisplayName, e.Error);
                HideIsBusyMessage();
            }
            else if (e.Result != null)
            {
                UserDataList = e.Result.ToList();
            }
            HideIsBusyMessage();
        }
  
  
     
       internal class DynamicReport : Telerik.Reporting.Report
       {
           private Table table1;
           public DynamicReport(object sourceObject)
           {
               table1 = createTable(sourceObject);
  
           }
  
  
           private Table createTable(object sourceObject)
           {
               var targetTable = new Table();
               targetTable.ColumnGroups.Clear();
               targetTable.Body.Columns.Clear();
               targetTable.Body.Rows.Clear();
  
               var sourcePropertyList = sourceObject.GetType().GetProperties();
               Telerik.Reporting.TextBox textboxGroup;
               Telerik.Reporting.TextBox textBoxTable;
               Telerik.Reporting.TableGroup tableGroupColumn;
               int i = 0;
               foreach (var o in sourcePropertyList)
               {
                   tableGroupColumn = new TableGroup();
  
                   targetTable.Body.Columns.Add(new TableBodyColumn(Unit.Inch(1)));
  
                   textboxGroup = new Telerik.Reporting.TextBox();
                   textboxGroup.Value = o.Name;
                   textboxGroup.Size = new SizeU(Unit.Inch(1.1), Unit.Inch(0.3));
                   tableGroupColumn.ReportItem = textboxGroup;
                   targetTable.ColumnGroups.Add(tableGroupColumn);
  
                   textBoxTable = new Telerik.Reporting.TextBox();
                   targetTable.Body.SetCellContent(0, i++, textBoxTable);
                   textBoxTable.Value = "=Fields." + o.Name;
               }
               TableGroup tableGroupRow = new TableGroup();
               targetTable.RowGroups.Add(tableGroupRow);
               tableGroupRow.Grouping.Add(new Telerik.Reporting.Data.Grouping());
               targetTable.DataSource = sourceObject;
               return targetTable;
           }
       }
          
    }
}
Steve
Telerik team
 answered on 20 Apr 2011
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?