Telerik Forums
Reporting Forum
4 answers
252 views
Hi All,
I'm new on using Telerik Reports. I'm just wondering how can I get the ObjectDatasource of my Master to my Subreport.
I have used this code from the documentation and it works fine when I use it directly to a report but when its being used to a master, cant seem to pass the datasource.

​ Dim objectDataSource As New Telerik.Reporting.ObjectDataSource()
    objectDataSource.DataSource = GetMyData() ' GetData returns a SqlDataAdapter object which has a select command with three SELECT statements.
    objectDataSource.DataMember = "Table2" ' Indicating the exact table to bind to. If the DataMember is not specified the first data table will be used.
    objectDataSource.CalculatedFields.Add(New Telerik.Reporting.CalculatedField("FullName", GetType(String), "=Fields.Name + ' ' + Fields.ProductNumber")) ' Adding a sample calculated field.

    'Creating a new report
    Dim report As New Telerik.Reporting.Report()

    ' Assigning the ObjectDataSource component to the DataSource property of the report.
    report.DataSource = objectDataSource

    ' Use the InstanceReportSource to pass the report to the viewer for displaying.
    Dim reportSource As new InstanceReportSource
    reportSource.ReportDocument = report

    ' Assigning the report to the report viewer.
    reportViewer1.ReportSource = reportSource

    ' Calling the RefreshReport method in case this is a WinForms application.
    Me.reportViewer1.RefreshReport()


Please note that using vb code, Report Q3 2013 and I wonder why Subreport.ReportSource.Datasource is not available
Any help would greatly appreciated,
Thanks in advance,
RJ
KS
Top achievements
Rank 1
 answered on 02 May 2014
2 answers
349 views
The feature request is to be able to hit the Print button (HTML5 implementation) and do an in browser PDF view with the auto print feature. Right now it will download the PDF so after multiple report prints you end up with a bunch of left over copies of the PDF in the user's download folder. Just adds clutter to the user's machine.

We can write our own PDF download feature on the server with a Content-Disposition of inline (currently Telerik is sending them down as 'attachment'), but we are hoping this was a feature already directly supported in Telerik Reporting without us needing to write special code. 

Note: what we want to keep in place is the way the PDF's are ImmediatePrint when Adobe opens them too. 

Thank you
NerdBrick
Top achievements
Rank 1
 answered on 01 May 2014
2 answers
160 views
Hi!

I am trying to make a simple edit in one of my reports using report designer.

I try to configure the data source in order to test it but i cant do it since the dropdown box is empty. SQL Server connectivity tools are installed.

This is not happening to only one machine

Here is a picture of the application: IMAGE
Elias
Top achievements
Rank 1
 answered on 01 May 2014
2 answers
161 views
I'm working on a project where telerik 7 reports has been used. Now am doing some enhancements for that reports and when I try to download telerik 7 it's directly downloading telerik 8 and when I install telerik 8 the reports are not showing its design view . If any upgrades are provided for telerik make sure that it will work on evey verison of its application , there's any way I can get telerik 7 exe  
Stef
Telerik team
 answered on 01 May 2014
1 answer
105 views
Report file is created but not saving as .trxd file
Stef
Telerik team
 answered on 01 May 2014
1 answer
105 views
I have create a report by grouping like below :
Cust00010      Chhan Sophal
LogNo       LogTitle
1                log1
2                log2
3               log3

the result show correct like above and export to pdf and csv are ok , but i export to Excel i got the errors like "Object reference not set to an instant of an object " 


Please help!! pls
Ivan Hristov
Telerik team
 answered on 01 May 2014
1 answer
154 views
Hello,

I see other Telerik products have NuGet packages - is there any plan to offer a NuGet package for the Reporting product?

Best,

John
Stef
Telerik team
 answered on 01 May 2014
3 answers
142 views
Hi there, I have a situation with ReportViewer with Implicit Styles (Windows8Touch). When I run my project an error is shown:

An unhandled exception of type 'System.InvalidOperationException' occurred in PresentationFramework.dll. Additional information: 'root' name cannot be found in the name scope of 'System.Windows.Controls.Grid'.

So, viewing the details of the error I found this situation in the InnerException:
Cannot load 'DocumentFormat.OpenXml'...

I added the library in my project and the following setting in App.config:
<dependentAssembly>
    <assemblyIdentity name="DocumentFormat.OpenXml" culture="neutral" publicKeyToken="31bf3856ad364e35"/>
    <bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="2.5.5631.0"/>
</dependentAssembly>
But the first error is shown without InnerException. With any other Implicit Style (Office2013, Windows 7, etc) works perfectly.

Is there a problem with Windows8Touch XAML definition in Implicit Styles?
Nasko
Telerik team
 answered on 01 May 2014
1 answer
164 views
Hi,

I'm relatively new to Telerik reporting but having a strange problem with some reports I have created.

I created a report based on an object data source that I am returning from a WCF RIA service and the report worked well. I then started to make some amendments to it, and one amendment was to include another object data source that returns a list from the same WCF RIA service to use as parameter lookup values.

Now when I run the report I get a strange message as follows:
An error has occurred while processing Report 'StatisticsReport': An error occurred while invoking data retrieval method. ------------- InnerException ------------- Exception has been thrown by the target of an invocation. ------------- InnerException ------------- An error occurred while executing the command definition. See the inner exception for details. ------------- InnerException ------------- There is already an open DataReader associated with this Command which must be closed first.

The first odd thing is that I also added another report which does exactly the same thing (2 object data sources, 1 for the report data source and another for the parameter lookup) and it works fine. The report data source object is different, but the lookup one is the same.

The second odd thing is that both reports run fine when I run it locally (VS 2013 with SQL Express 2012) but I'm getting the issue when I publish the site to Azure. The original report was definitely working on Azure the first time I published it, but now it doesn't and the second report works fine both locally and on Azure.

Any ideas?

Thanks,
Richard
Stef
Telerik team
 answered on 01 May 2014
3 answers
210 views
I need a report designer that i can embed into my web (asp.net MVC) application.  Does telerik reporting have a suitable designer.  Silverlight is fine.
Nasko
Telerik team
 answered on 01 May 2014
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?