Telerik Forums
Reporting Forum
1 answer
225 views
Hi,
I've seen the forum post of how to export a reportbook to a pdf file. However, I can't export my report book correctly.
I have two (or more) reports with subreports on the detail. My collection of reports belongs to the same report class  - DanfeReport(which inherits from Telerik.Reporting.Report). 
I have included all reports in ReportBook and rendered into a pdf result. Then I wrote it into a file, using Filestream.
The document was created with 2 pages as expected, but the content was incorrect because both pages have the same content. 
Can you help me?
Thanks in advance.
Stef
Telerik team
 answered on 24 Jan 2017
8 answers
1.0K+ views

Hi to all,

I have a solution with several projects: Client, Entities and Reports.

The last one doesn't see Entities assembly. Then I added Assembly reference, but this code it seems take not effect.... where I wrong?

<configuration>
  <configSections>
    <section name="Telerik.Reporting" type="Telerik.Reporting.Configuration.ReportingConfigurationSection, Telerik.Reporting" allowLocation="true" allowDefinition="Everywhere" />
  </configSections>
   
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-2.6.10.0" newVersion="2.6.10.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-2.6.10.0" newVersion="2.6.10.0" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
 
  <Telerik.Reporting>
    <assemblyReferences>
      <add name="Brema.Entities" version="1.0.0.0" culture="neutral" publicKeyToken="null"/>
    </assemblyReferences>
  </Telerik.Reporting>
   
</configuration>
Katia
Telerik team
 answered on 24 Jan 2017
4 answers
42 views
Hello,

How to edit graphic label (values). Of bars
Stef
Telerik team
 answered on 24 Jan 2017
1 answer
106 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
290 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
244 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
93 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
614 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
693 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
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?