Telerik Forums
Reporting Forum
3 answers
132 views
I have downloaded .trdx file from my web application to client machine
after changes being done from client in trdx i want to save this updated *.trdx on server
is there any way to do it using telerik report designer(standalone)?

Please help me out i am stuck with this.Its requirement of client.
So Please tell me how is it possible using telerik report designer.

Thanks in advance
Unknown
Top achievements
Rank 1
 answered on 25 Apr 2013
1 answer
147 views
Hi.

We have a Silverlight ReportViewer that talks to a WCF Report Service.

This report service looks implements "ApplicationPath" which according to its description should allow relative report file names when the silverlight viewer requests to render a report.

ReportingService : ReportServiceBase, IReportService
{
        private static string _applicationPath = null;
   
        /// <summary>
        /// From <see cref="Telerik.Reporting.ReportServiceBase"/>
        /// When implemented, returns the file system path of the current application's root directory.
        /// It is used to resolve the relative paths of the <see cref="Telerik.Reporting.UriReportSource"/>s.
        /// </summary>
        protected override string ApplicationPath
        {
            get
            {
                if (_applicationPath == null)
                {
                    _applicationPath = XXXX.Helpers.LoadExternal.GetReportsPath(); // This sets a FullName path like C:\ProgramData\OurProgram\Reports
                }
                return _applicationPath;
            }
        }
  
.....
}

Our silverlight reportview uses standard binding to the "Report" attribute

<telerikReporting:ReportViewer ReportServiceClientFactory="{Binding ReportServiceClientFactory}"
                                       ReportServiceUri="{Binding ReportServiceUrl}"
                                       Report="{Binding ReportName}"
                                       Visibility="{Binding ReportVisibility}" />

The report renders correctly when "ReportName" is

  • a fully qualified name that represents a report stored in a loaded dll on the server side
  • "C:\ProgramData\OurApp\Reports\MyReport.trdx" - a fullName file path for a report stored on the server file system

However, if we try to set "ReportName" to a relative path it fails. We have tried

  • MyReport.trdx
  • MyReport
  • ./MyReport.trdx

These produce a rendering error: 
A report can't be created from Barcodes Report.trdx

The "ApplicationPath" does not seem to get called.

I can confirm by calling it manually that the correct path is returned (and ends in a slash char) and that MyReport.trdx exists and it is a valid report at this location.

From Silverlight report viewer how are we meant to specify a relative file path?

We would like to be able to specify only a relative path from Silverlight to not give away the full server path in any server communication.

Is this possible?

Looking at ReportFileResolver code it is not, so do we have to create a custom resolver or is this a possible feature for future versions?

Thanks.

Adrian.
Chavdar
Telerik team
 answered on 25 Apr 2013
2 answers
127 views
Dear team,
I set a font family to a textbox in my report and when it render in my local machine it display the right font but when i run the report in the online website it get different font family and i don't know why.
kindly check the attached snapshots.
Regards,
Mohammed
Mohammed
Top achievements
Rank 2
 answered on 24 Apr 2013
5 answers
574 views
Hi team,
I have a drill through sub report.
when I run it in winform simple form application it work fine but when i run it in webforms i get the below exception i don't know why


Server Error in '/leadslightning' Application.

The method or operation is not implemented.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NotImplementedException: The method or operation is not implemented.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[NotImplementedException: The method or operation is not implemented.]
   Telerik.Reporting.Html5Rendering.Writers.Svg.SvgPathBuilder.Visit(BezierSegment bezier) +28
   Telerik.Reporting.Processing.Primitives.BezierSegment.Accept(PathSegmentVisitor visitor) +12
   Telerik.Reporting.Processing.Primitives.PathSegmentVisitor.Visit(PathSegment seg) +12
   Telerik.Reporting.Html5Rendering.Writers.Svg.SvgPathBuilder.GetSvgPath(PathGeometry geometry) +304
   Telerik.Reporting.Html5Rendering.Writers.Svg.PrimitivesWriter.Visit(PathGeometry pathGeometry) +637
   Telerik.Reporting.Processing.Primitives.PathGeometry.Accept(PrimitiveElementVisitor visitor) +12
   Telerik.Reporting.Html5Rendering.Writers.Svg.PrimitivesWriter.Write(ICanvas canvas) +78
   Telerik.Reporting.Html5Rendering.Writers.Svg.Canvas.Write(LayoutElement element, ElementPageInfo pageInfo, Padding padding) +521
   Telerik.Reporting.Html5Rendering.Writers.Svg.Graph.Begin(LayoutElement element, ElementPageInfo pageInfo) +1034
   Telerik.Reporting.Html5Rendering.Writers.Report.WriteStartElement(LayoutElement element, ElementPageInfo pageInfo) +49
   Telerik.Reporting.BaseRendering.PageHandler.Telerik.Reporting.Paging.IPageHandler.StartElement(LayoutElement element, ElementPageInfo info) +14
   Telerik.Reporting.Paging.PageStartElement.AddToPage(IPageHandler handler) +19
   Telerik.Reporting.Paging.PageElementLayer.AddToPage(IPageHandler handler) +69
   Telerik.Reporting.Paging.PageElementManager.AddToPage(IPageHandler handler) +34
   Telerik.Reporting.Paging.PageCompositionBase.AddElementsToPage() +31
   Telerik.Reporting.Paging.PageCompositionBase.SendPhysicalPages() +38
   Telerik.Reporting.Paging.PageCompositionBase.OutputPage() +550
   Telerik.Reporting.Paging.PageCompositionBase.CreatePages() +766
   Telerik.Reporting.Paging.PagerBase.Telerik.Reporting.Paging.IPager.CreatePages(IPageHandler handler, Report report) +42
   Telerik.Reporting.BaseRendering.RenderingExtensionBase.Render(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback) +320
   Telerik.Reporting.Processing.ReportProcessor.RenderCore(ExtensionInfo extensionInfo, IList`1 reports, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback) +891
   Telerik.Reporting.Processing.ReportProcessor.RenderCore(String format, IList`1 reports, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback) +49
   Telerik.ReportViewer.WebForms.ReportPageOperation.RenderReport(String format, IList`1 processingReports, Hashtable deviceInfo, IRenderingContext renderingContext) +85
   Telerik.ReportViewer.WebForms.ReportRenderOperation.PerformOperationOverride() +206
   Telerik.ReportViewer.WebForms.ReportPageOperation.PerformOperationOverride() +88
   Telerik.ReportViewer.WebForms.HandlerOperation.PerformOperation(HttpContext context, ICacheManager cacheManager) +49
   Telerik.ReportViewer.WebForms.BasicHandler.ProcessRequest(HttpContext context) +194
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +341
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69
Peter
Telerik team
 answered on 24 Apr 2013
3 answers
284 views
I am getting the following error for all report on my live server but not on my local machine.

[TypeLoadException: A null or zero length string does not represent a valid Type.]
   System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +7663440
   System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +58
   System.Type.GetType(String typeName, Boolean throwOnError) +59
   Telerik.Reporting.Processing.ExtensionManagerBase.CreateExtensionInfo(String typeName, String extensionName) +45

[ExtensionManagerException: Error loading extension type with name .]
   Telerik.Reporting.Processing.ExtensionManagerBase.CreateExtensionInfo(String typeName, String extensionName) +83
   Telerik.Reporting.Processing.ExtensionManagerBase.Config(ExtensionInfoCollection extensions, ReportingConfigurationSection section) +285
   Telerik.Reporting.Processing.ExtensionManagerBase..ctor(IEnumerable`1 extensionTypeNames, ReportingConfigurationSection section) +95
   Telerik.Reporting.Processing.ExtensionManager.get_Instance() +96
   Telerik.Reporting.Processing.ExtensionManager.ListExtensions(Type extensionType) +11
   Telerik.Reporting.Processing.ReportProcessor.ListRenderingExtensions() +20
   Telerik.Reporting.Processing.ReportProcessor.GetRenderer(String name) +36
   Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, IReportDocument reportDocument, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback) +206
   Telerik.ReportViewer.WebForms.ServerReport.Render(HttpResponse response, String format, Int32 pageIndex) +460
   Telerik.ReportViewer.WebForms.ReportPageOperation.PerformOperation(NameValueCollection urlQuery, HttpContext context) +117
   Telerik.ReportViewer.WebForms.HttpHandler.ProcessRequest(HttpContext context) +164
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75


ASPX CODE
<%@ Page Title="" Language="C#" MasterPageFile="~/mstSite.Master" AutoEventWireup="true" CodeBehind="RollupReport.aspx.cs" Inherits="ARAMARK.MPB.Resources.Reports.RollupReport" %> 
<%@ Register Assembly="Telerik.ReportViewer.WebForms, Version=4.0.10.317, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" Namespace="Telerik.ReportViewer.WebForms" TagPrefix="telerik" %> 
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">  
    <br style="clear:both;" /> 
    <div class="TenAbove" /> 
    <div style="border:solid 1px black; padding:5px;">  
    <telerik:ReportViewer ID="ReportViewer1" runat="server"   
        width="100%" Height="775px" Resources-ExportSelectFormatText="View As..." Resources-ExportButtonText="View" > 
        <Resources ExportButtonText="View" ExportSelectFormatText="View As..."></Resources> 
    </telerik:ReportViewer> 
    </div> 
</asp:Content> 
Code Behind
protected void Page_Load(object sender, EventArgs e)  
        {  
            if (LoggedInUser.Role == Roles.RegionalAdmin)  
            {  
                ARAMARK.MPB.Reports.RollupReportDetailed r = new ARAMARK.MPB.Reports.RollupReportDetailed();  
                ReportViewer1.ShowParametersButton = false;  
                ReportViewer1.ParametersAreaVisible = false;  
                r.ReportParameters["RegionRecId"].Value = LoggedInUser.RegionRecId.ToString();  
                ReportViewer1.Report = r;  
            }  
        } 

Any clues?


Sebastian
Top achievements
Rank 1
 answered on 24 Apr 2013
1 answer
83 views
I'm trying to put a page break before a sub report. I've read in a few different spots that this can only be done with sections. I don't have any groupings and apparently the designer can only create groups and not additional detail sections. Any suggestions? Adding code is not a good solution for me since others who are not developers will be creating these reports.
Peter
Telerik team
 answered on 24 Apr 2013
1 answer
73 views
How to hide stored procedures name from standalone designer sql datasource wizard after configuring one time is there any way so that this wizard will show text box inspite off dropdown containg procedures name

Please help me out, Now i stuck with this point

Thanks in advance
Peter
Telerik team
 answered on 24 Apr 2013
0 answers
63 views
Dear All,
    I have this Linq query to combine a list of values (Names) form the child table into one string
    
team.TeamMembers.Where(o => o.TeamId == team.ID).Select(i => i.Member.Name).Aggregate((x, y) => x + y)

    the result is taken to a string properity on the returned class.
    When I preview the report I got this error:
    
An error has occurred while processing Report 'TeamFollowUp': An error occurred while invoking data retrieval method. Try restarting VisualStudio.
------------- InnerException -------------
Exception has been thrown by the target of an invocation.
------------- InnerException -------------
LINQ to Entities does not recognize the method 'System.String Aggregate[String](System.Collections.Generic.IEnumerable`1[System.String], System.Func`3[System.String,System.String,System.String])' method, and this method cannot be translated into a store expression.
    
How can I correct this ...!!!

Regards
Ubuntu
Top achievements
Rank 1
 asked on 24 Apr 2013
1 answer
110 views
Hello, 

IT's possible start with a option "ALL" and the filter is did not applied?

if yes, how can I do the code to the paramenter know when the user select one option, or when the user no select one option( in this case the query will bring all resgister from table. 

Thanks!

Att, ricardo
Hadib Ahmabi
Top achievements
Rank 1
 answered on 24 Apr 2013
1 answer
76 views
Hi
I am using your Telerik report in our program but ReportViewer is not working in xp and windows8. (windows 7 is good work)
So i re-downloaded the Q1 2013 build 7.0.13.412 and re-installed but it has a same problem.

My Source is simple ( i made it for the Telerik.ReportViewer test  )

<Window
 xmlns:tr="http://schemas.telerik.com/wpf" x:Class="tests.MainWindow"
 Title="MainWindow" Height="350" Width="525">
 <Grid>
  
<tr:ReportViewer Margin="33,23,40,22"/>
  
</Grid>
</Window>



using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
 
namespace tests
{
    /// <summary>
    /// MainWindow.xaml    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }
    }
}

-------------------------------------------------------------

Also, I included the Telerik.Reporting dlls.

Telerik.Reporting    -  Q1 2013 build 7.0.13.412
Telerik.Reporting.XpsRendering
Telerik.ReportViewer.Wpf
Telerik.Windows.Controls    - 2013.1.403.40    , v4.0.30319
Telerik.Windows.Controls.Chart
Telerik.Windows.Controls.Data
Telerik.Windows.Controls.GridView
Telerik.Windows.Controls.Input
Telerik.Windows.Controls.Navigation
Telerik.Windows.Data


This source is work in Windows 7 but is not work in XP and Windows 8.

What is problem?

Peter
Telerik team
 answered on 24 Apr 2013
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?