Telerik Forums
Reporting Forum
4 answers
41 views
Hello,

How to edit graphic label (values). Of bars
Stef
Telerik team
 answered on 24 Jan 2017
1 answer
103 views

Hello,

I have a window with the Telerik Report that is defined with:

<tkrep:ReportViewer Name="Viewer"
             ViewMode="PrintPreview"
             ZoomMode="FullPage" />

 

When the window is displayed, the application shows an error window with "Object reference not set to an instance of an object."

If I remove the ZoomMode="FullPage" attribute, the NRE is not displayed.

Note also that this was working correctly until I install version R1 2017 of Telerik Reporting.

If that could help you, here is the stack trace at the place the exception is generated:

     Telerik.ReportViewer.Wpf.dll!Telerik.ReportViewer.Wpf.ReportViewer.ApplyZoomMode() Line 698    C#
     Telerik.ReportViewer.Wpf.dll!Telerik.ReportViewer.Wpf.ReportViewer.OnZoomModePropertyChanged(System.Windows.DependencyObject d = {Telerik.ReportViewer.Wpf.ReportViewer}, System.Windows.DependencyPropertyChangedEventArgs e = {System.Windows.DependencyPropertyChangedEventArgs}) Line 654    C#
     WindowsBase.dll!System.Windows.DependencyObject.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs e)    Unknown
     PresentationFramework.dll!System.Windows.FrameworkElement.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs e)    Unknown
     Telerik.ReportViewer.Wpf.dll!Telerik.ReportViewer.Wpf.ReportViewer.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs e = {System.Windows.DependencyPropertyChangedEventArgs}) Line 728    C#
     WindowsBase.dll!System.Windows.DependencyObject.NotifyPropertyChange(System.Windows.DependencyPropertyChangedEventArgs args)    Unknown
     WindowsBase.dll!System.Windows.DependencyObject.UpdateEffectiveValue(System.Windows.EntryIndex entryIndex, System.Windows.DependencyProperty dp = {System.Windows.DependencyProperty}, System.Windows.PropertyMetadata metadata, System.Windows.EffectiveValueEntry oldEntry, ref System.Windows.EffectiveValueEntry newEntry = {System.Windows.EffectiveValueEntry}, bool coerceWithDeferredReference, bool coerceWithCurrentValue, System.Windows.OperationType operationType)    Unknown
     WindowsBase.dll!System.Windows.DependencyObject.SetValueCommon(System.Windows.DependencyProperty dp, object value, System.Windows.PropertyMetadata metadata, bool coerceWithDeferredReference, bool coerceWithCurrentValue, System.Windows.OperationType operationType, bool isInternal)    Unknown
     PresentationFramework.dll!System.Windows.Baml2006.WpfMemberInvoker.SetValue(object instance, object value)    Unknown
     System.Xaml.dll!MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(object inst, System.Xaml.XamlMember property = {System.Windows.Baml2006.WpfXamlMember}, object value)    Unknown
     System.Xaml.dll!MS.Internal.Xaml.Runtime.PartialTrustTolerantRuntime.SetValue(object obj = {Telerik.ReportViewer.Wpf.ReportViewer}, System.Xaml.XamlMember property = {System.Windows.Baml2006.WpfXamlMember}, object value = FullPage)    Unknown
     System.Xaml.dll!System.Xaml.XamlObjectWriter.Logic_ApplyPropertyValue(MS.Internal.Xaml.Context.ObjectWriterContext ctx = {MS.Internal.Xaml.Context.ObjectWriterContext}, System.Xaml.XamlMember prop = {System.Windows.Baml2006.WpfXamlMember}, object value = FullPage, bool onParent = true)    Unknown
     System.Xaml.dll!System.Xaml.XamlObjectWriter.Logic_DoAssignmentToParentProperty(MS.Internal.Xaml.Context.ObjectWriterContext ctx = {MS.Internal.Xaml.Context.ObjectWriterContext})    Unknown
     System.Xaml.dll!System.Xaml.XamlObjectWriter.WriteEndMember()    Unknown
     PresentationFramework.dll!System.Windows.Markup.WpfXamlLoader.TransformNodes(System.Xaml.XamlReader xamlReader = {System.Windows.Baml2006.Baml2006Reader}, System.Xaml.XamlObjectWriter xamlWriter = {System.Xaml.XamlObjectWriter}, bool onlyLoadOneNode = false, bool skipJournaledProperties = false, bool shouldPassLineNumberInfo = true, System.Xaml.IXamlLineInfo xamlLineInfo = {System.Windows.Baml2006.Baml2006Reader}, System.Xaml.IXamlLineInfoConsumer xamlLineInfoConsumer, MS.Internal.Xaml.Context.XamlContextStack<System.Windows.Markup.WpfXamlFrame> stack = {MS.Internal.Xaml.Context.XamlContextStack<System.Windows.Markup.WpfXamlFrame>}, System.Windows.Markup.IStyleConnector styleConnector = null)    Unknown
     PresentationFramework.dll!System.Windows.Markup.WpfXamlLoader.Load(System.Xaml.XamlReader xamlReader, System.Xaml.IXamlObjectWriterFactory writerFactory, bool skipJournaledProperties, object rootObject, System.Xaml.XamlObjectWriterSettings settings, System.Uri baseUri)    Unknown
     PresentationFramework.dll!System.Windows.Markup.WpfXamlLoader.LoadBaml(System.Xaml.XamlReader xamlReader = {System.Windows.Baml2006.Baml2006Reader}, bool skipJournaledProperties, object rootObject, System.Xaml.Permissions.XamlAccessLevel accessLevel, System.Uri baseUri)    Unknown
     PresentationFramework.dll!System.Windows.Markup.XamlReader.LoadBaml(System.IO.Stream stream = {MS.Internal.AppModel.BamlStream}, System.Windows.Markup.ParserContext parserContext = {System.Windows.Markup.ParserContext}, object parent, bool closeStream = true)    Unknown
     VIS.exe!PrintPreviewWnd.InitializeComponent() Line 1    Elements

Stef
Telerik team
 answered on 23 Jan 2017
1 answer
286 views
 I trying to remove the xaxis label.Actually the report has one  category group and one child category group .but i need to show category group point as a label ..how i fix this ???
Katia
Telerik team
 answered on 23 Jan 2017
2 answers
1.3K+ views

Hello,

I am creating a report that pulls data from an SqlDataSource object. In the report's C# code-behind, I need to access the same data that the report uses to generate a string for an informational QR code on the report. Right now, I am pulling the data a second time from the same table through a data source for the project (DataSet object).

I'm wondering if there is a more efficient way to do this, as in a way to read the same data that the report has already selected. I've explored the SqlDataSource object's properties, but I'm pretty new to this and nothing seems to work there. Another solution could be to use an expression to pass all the values in a field from the report designer to a method in the code-behind, but I can't figure out how to do that either.

I'm not sure if this makes a difference, but in the report, the SqlDataSource is only used by a table and by the report parameters.

Let me know if more information is needed, and thanks in advance!

Shane
Top achievements
Rank 1
 answered on 23 Jan 2017
1 answer
234 views

I am getting an "Exception was unhandled" error along with the following information: Unsupported ReportSource. Cannot create resolver.

I am running in a WinForm system.

I have tried to run my report 2 different ways and both give me the same error message.

Instance #1

  public partial class frmReviewPlans : Form {     public frmReviewPlans() 

  {      

      InitializeComponent();       

     var typeReportSource = new Telerik.Reporting.TypeReportSource();      

     typeReportSource.TypeName = "PlanTracking.Reports.Reports.LCPC.ReviewPlans";       

     rvReviewPlans.ReportSource = typeReportSource;       

     rvReviewPlans.ViewMode = Telerik.ReportViewer.WinForms.ViewMode.PrintPreview;       

     rvReviewPlans.RefreshReport();    

 }

 

Instance #2

    private void btnPrintReport_Click(object sender, EventArgs e) 

  {       

      var typeReportSource = new Telerik.Reporting.TypeReportSource();       

      typeReportSource.TypeName = "PlanTracking.Reports.Reports.LCPC.ReviewPlans";       

      rvReviewPlans.ReportSource = typeReportSource;       

      rvReviewPlans.ViewMode = Telerik.ReportViewer.WinForms.ViewMode.PrintPreview;       

      rvReviewPlans.RefreshReport();

  }

both of these instances are erring rvReviewPlans.ReportSource = typeReportSource.  

Can anybody shed any light on what I am doing wrong or what the error message is telling me?

Any information would be greatly appreciated as I and a co-worker are at a loss as to what it could be.

 

Marshall Long

Katia
Telerik team
 answered on 23 Jan 2017
2 answers
92 views

Hi,

Could you please help in solving this issue.I have 4 parameters:

-StartDate is a custom datetime picker param

-EndDate is a custom datetime picker param

-Campus is a builtin param bound to an sql datasource with both value and display text.

-Vehicle Numbers is is a builtin param bound to an sql datasource with both value and display text and mutilvalue enabled.This param is cascading from Campus param,so when picking a campus the vehicle numbers gets filtered

 

The problem I am facing is that when I pick a campus, the vehicle numbers are filtered but the start and end date values are lost.I feel the whole parameter area in being refreshed so the values entered are not restored.

.ParameterEditors(pe => pe.DateTimeEditor("createDateTimeEditor"))

 

function createDateTimeEditor(placeholder, options) {
       
        var dateTimePickerElement = $("<input type='text' style='width: 100%;' />");
        dateTimePickerElement.appendTo(placeholder);
      
        var parameter,
              valueChangedCallback = options.parameterChanged,
              dateTimePicker;
 
        function onChange() {
            var val = dateTimePicker.value();                
          
            valueChangedCallback(parameter, val);
        }
 
        return {
            beginEdit: function (param) {
 
                parameter = param;
                 
                $(dateTimePickerElement).kendoDateTimePicker({
                     
                    change: onChange
                });
 
                dateTimePicker = $(dateTimePickerElement).data("kendoDateTimePicker");
            }
        };

Environment:

-ASP.NET MVC 5

.-NET 4.5

-Latest Reporting package

 

Thanks in advance

Madani

 

HCT-CERT
Top achievements
Rank 1
 answered on 22 Jan 2017
1 answer
597 views

Hello, 

       I am using Telerik Reporting R3 2016 and displaying report result as PDF Document. I am using Roboto Fonts, i have installed these fonts in my development machine which is working fine. PDF Content embed as Roboto. But in Production server contents are gets displaying in Microsoft Sans Serif Font.

        I have Installed Roboto(TrueType) font in production server and restarted production machine. But still it is not working. I have checked in Windows\Fonts Folder, my fonts are there. Am i need to change any other configuration to get Roboto font in PDF?

Stef
Telerik team
 answered on 20 Jan 2017
1 answer
673 views

I want a table column right from a column of which I set the visibility to false with a visibility binding expression to take the free space availalble.

How can I achieve this?

Katia
Telerik team
 answered on 20 Jan 2017
2 answers
229 views

Using 10.2.16.1025, VS Professional 2015, Win 10, SQL Server 2016.  I have built several SQL stored procedures to fetch data, integrated them into Entity framework and have successfully used them for both main report datasources and as lists of values for report parameters, accessing them as Entity DataSources.

However, one stored procedure does not work right.  After adding it to a new Entity datasource for a report parameter, the column names in its output dataset are not displaying, just an unusable thing named 'item'.

When the wizard gets to Select a Context Member, I pick this:

Method: RptUtlTimeZone(Nullable<Int32> systemTimeZoneId, Nullable<Boolean> returnResultSet, String& zoneMsName) : List<RptUtlTimeZoneReturnModel>
Type: Myriad.Pc.Data.SqlServer.PointCentricContext
Assembly: Myriad.Pc.Data.SqlServer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

Looks similar to all the other stored procedures that work correctly.  Note that it does have the output data set definition List<RptUtlTimeZoneReturnModel>

The Wizard completes, I go to Data Explorer and all I see is "item".

Here is part of the file from Visual Studio which describes the output data set - RptUtlTimeZoneReturnModel.cs

    public partial class RptUtlTimeZoneReturnModel
    {
        public System.Int32? SystemTimeZoneId { get; set; }
        public System.String ZoneMSName { get; set; }
    }

and this looks fine.

But why does Data Explorer not display the proper columns in the output data set?  Thanks.

 

Stef
Telerik team
 answered on 20 Jan 2017
1 answer
107 views

Hello
Our application provides a Telerik report which can be exported to Word. Some of our customers are complaining that they are not able to insert a manual page break in the exported file by using CTRL+Enter.

Because the report extends over several pages, the whole page is packed in an outer table. CTRL+Enter inserts a page break in front of the table instead at the current cursor position.

Do you have any suggestions to solve this issue?

Regards, Markus

 

Stef
Telerik team
 answered on 19 Jan 2017
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?