Telerik Forums
Reporting Forum
1 answer
115 views
Hello all,

I'm currently having a problem where the collection items values are not in the same table. I'm using objectdatasource as my table data source.


Desired output:
No   Description
1      Value1
2      Value2


Current Output:

No  Description
1     Value1

No Description
1    Value2


Property : 

public class Test {

public List<Descriptions> myCollection
        {
            get
            {
                return myCollection;
            }
        }

}


public class Descriptions 
    {

public string Description
        {
            get { return description; }
            set
            {
                if (description == value) return;

                description = value;
              
            }
        }
}


This is how i set my data source:

Test t = new Test();

objectDataSource.DataSource = t.myCollection;
tabledatasource = objectDatasource;

Your help is much appreciated
Thx

























Stef
Telerik team
 answered on 14 Aug 2014
1 answer
146 views
Hello,

I am using Report Designer (standalone) and created a report (master-detail). The main report has a link to another report.
Is there anyway, to export all reports into one document where user can navigate the same way (something like a webpage), or by just having all report into one document (something like pdf or word)?

Thanks!
Stef
Telerik team
 answered on 14 Aug 2014
2 answers
104 views
I'm having a problem getting the data-attributes to work for a custom report menu. Following the example in the documentation I create a button with a data-command attribute, and add the data-target as instructed. I am still unable to trigger the functionality. Any help on this would be great. I have attempted this using several commands to test and thus far have been unsuccessful.

I have upgraded to the latest service pack ( Telerik Reporting Q2 2014 SP1 (8.1.14.804)) and according to the release notes, this version should expose the commands. I have attempted the above, as well as using the commands to get the instance and call the commands directly;

var sample = $('viewer').data('telerik_ReportViewer');
sample.commands.goToFirstPage().exec();

This too, has been unsuccessful. Do I need to be inside of a special container or such when calling the attributes?
Stef
Telerik team
 answered on 13 Aug 2014
1 answer
150 views
Silverlight 5 project

We upgraded from Q1 2014 to Q2 2014 and when we open up the .XAML in VS 2012 (loading designer...) that contains ReportViewerEx we get the following error:

Error 20 This feature requires service 'Microsoft.Windows.Design.Services.ValueTranslationService' to be present, but it could not be located.

Since this is a Telerik control (ReportViewerEx) needing this reference for the designer to be able to work, then there clearly is a problem with Q2 2014 ReportViewerEx for Silverlight project.  The Microsoft.Windows.Design.Services.ValueTranslationService is a .NET framework DLL ... it is NOT a Silverlight .DLL and hence will obviously not work in a Silverlight project.

See MSDN documentation here: http://msdn.microsoft.com/en-us/library/microsoft.windows.design.services.valuetranslationservice(v=vs.90).aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1

This is clearly not going to work, Telerik, you can NOT mix and match Silverlight and .NET framework DLLs, you are NOT permitted to use a .NET framework DLL in a Silverlight project so your control should NOT be referencing such a DLL in order to work.

We need a fix for this problem ASAP.

Rob




Stef
Telerik team
 answered on 13 Aug 2014
1 answer
596 views
Hi,
I want to develop a telerik report with both English, Arabic labels and outputs. The image is attached. Please a provide a solution.
Hinata
Top achievements
Rank 1
 answered on 13 Aug 2014
1 answer
220 views
I have a telerik report designed as follows. - Windows Forms

The detail section has a number of sub reports (4 in this case)  which are bound by lists. 
Some sub reports are visible or not visible depending on data. The detail section is being rendered in one page and in case, there is less data in sub reports
there is a lot of space left beneath it . The section goes into new page again for next data.

I am not able to change the keep together property of detail section. It is kept to true and says that I have to enable docking to make it false.
I have changed the sub report detail section's  keep together to false but it doesnt work. 

Any help appreciated. Thanks

HN

Stef
Telerik team
 answered on 13 Aug 2014
2 answers
151 views
Hi! 
I would like to know if we can create custom reports with Telerik reporting. For example the user will choose the columns on the fly, the group by and the sort and when he is done, a Telerik report will comes up. Is it possible without creating a template for each report?
Stef
Telerik team
 answered on 12 Aug 2014
11 answers
1.3K+ views
Hello I have a problem when I deploy my website but when I run in localhost it's didn't have a problem.

Error is show in picture "capture002.png"

I use MySql as database.

My code on "web.config" is

<?xml version="1.0"?>
<configuration>
    <connectionStrings>
        <add name="timesheet" connectionString="server=localhost;User Id=xx;password=xxxxxxxxxx;Persist Security Info=True;database=testDB" providerName="MySql.Data.MySqlClient"/>
    </connectionStrings>
    <appSettings>
        <add key="Telerik.ScriptManager.TelerikCdn" value="Disabled"/>
        <add key="Telerik.StyleSheetManager.TelerikCdn" value="Disabled"/>
    </appSettings>
    <system.web>
    <customErrors mode="Off"/>
    <compilation debug="true" strict="false" explicit="true" targetFramework="4.0">
            <assemblies>
                <add assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                <add assembly="Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                <add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                <add assembly="System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                <add assembly="Telerik.ReportViewer.WebForms, Version=4.2.10.1110, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/>
                <add assembly="Telerik.Reporting, Version=4.2.10.1110, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/>
                <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
            </assemblies>
            <buildProviders>
                <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
            </buildProviders>
        </compilation>
        <pages>
            <controls>
                <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>
            </controls>
        </pages>
        <httpHandlers>
            <add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler" validate="false"/>
            <add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler" validate="false"/>
            <add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler" validate="false"/>
            <add path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.RadUploadProgressHandler" validate="false"/>
            <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource" validate="false"/>
            <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false"/>
            <add path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=4.2.10.1110, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" validate="true"/>
        </httpHandlers>
        <httpModules>
            <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule"/>
            <add name="RadCompression" type="Telerik.Web.UI.RadCompression"/>
        </httpModules>
    </system.web>
    <system.webServer>
        <validation validateIntegratedModeConfiguration="false"/>
        <modules runAllManagedModulesForAllRequests="true">
            <remove name="RadUploadModule"/>
            <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" preCondition="integratedMode"/>
            <remove name="RadCompression"/>
            <add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode"/>
        </modules>
        <handlers>
            <remove name="ChartImage_axd"/>
            <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode"/>
            <remove name="Telerik_Web_UI_SpellCheckHandler_axd"/>
            <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode"/>
            <remove name="Telerik_Web_UI_DialogHandler_aspx"/>
            <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode"/>
            <remove name="Telerik_RadUploadProgressHandler_ashx"/>
            <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode"/>
            <remove name="Telerik_Web_UI_WebResource_axd"/>
            <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode"/>
            <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
            <add name="Telerik.ReportViewer.axd_*" path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=4.2.10.1110, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" preCondition="integratedMode"/>
        </handlers>
    </system.webServer>
</configuration>


If you want any information to analyse this problem please tell me.

Thank you for help,
Jo
Stef
Telerik team
 answered on 11 Aug 2014
6 answers
869 views
Hi,
      I want to create textboxes dynamically at runtime.In my application the number of columns returned from database is not fixed. So I have to create that number of textboxes as the number of column returned.
      For that I have used the following code:

        Dim cntColumns As Integer
        cntColumns = ds.Tables(0).Columns.Count()-1
        Dim xaxis, yaxis As Integer
        Dim headcolumnname As String
        Dim i As Integer
        Dim headcolumnlist As Telerik.Reporting.ReportItemBase() = New          Telerik.Reporting.ReportItemBase(cntColumns) {}
        For i = 0 To cntColumns
            headcolumnname = ds.Tables(0).Columns(i).ColumnName
            headcolumnlist(i) = CreatetxtHead(headcolumnname, i)
            Dim textBox As Telerik.Reporting.TextBox =               DirectCast(headcolumnlist(i), TextBox)
            textBox.Location = New Telerik.Reporting.Drawing.PointU(New               Telerik.Reporting.Drawing.Unit(xaxis,               Telerik.Reporting.Drawing.UnitType.Inch), New               Telerik.Reporting.Drawing.Unit(yaxis,               Telerik.Reporting.Drawing.UnitType.Inch))
       textBox.Size = New SizeU(New Unit(2,     Telerik.Reporting.Drawing.UnitType.Cm), New     Telerik.Reporting.Drawing.Unit(2,     Telerik.Reporting.Drawing.UnitType.Cm))
          i += 1
          xaxis += 1
        Next
        Me.ReportHeaderSection1.Items.AddRange(headcolumnlist)
        Me.Items.Add(DirectCast(ReportHeaderSection1, ReportItemBase))


Private Function CreatetxtHead(ByVal FieldName As String, ByVal i As Integer) As Telerik.Reporting.TextBox
        Dim txtHead As New Telerik.Reporting.TextBox()
        txtHead.Value = "=[" + FieldName + "]"
        Return txtHead
    End Function

When I execute this code I am getting error 'value must be of type Telerik.Reporting.ReportItemBase' at the Me.ReportHeaderSection1.Items.AddRange(headcolumnlist) location.
         This code sample I have taken from forum. Can you please help me what error I am making?

Thanks,
Rahul
Stef
Telerik team
 answered on 11 Aug 2014
4 answers
563 views

Hello, I am new to Telerik. I want to have a button in my ASP.NET MVC web application that when clicked:

  1. executes a .trdx standalone Telerik file
  2. exports the output to a Word file

I don't know how to get started with this, what tutorial might help explain this? What sort of methods might be available? Here is my pseudo-code of what I would like to do:

string filePath = Server.MapPath("~/reportFolder/reportFile.trdx");
// I made this stuff up:
Telerik.StandaloneReport myReport = new Telerik.StandaloneReport(filePath);
myReport.executeAndPromptTheUserToSaveAs();

I have the .trdx file linked to my database, and so it is already correctly processing the report I want. Keep in mind that I don't want to embed the report in the web application in any way, I just want to "Save as..." the output of the .trdx report file when clicking a button in the application.

Ian
Top achievements
Rank 1
 answered on 08 Aug 2014
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?