Telerik Forums
Reporting Forum
2 answers
741 views
Q1 2014 silverlight

I am using the ObjectDataSource with a business object with this signature:

Public Class TransferReportClass
    <DataObjectMethod(DataObjectMethodType.Select)> _
    Public Function TransferReportList(ByVal sn As String, _
                                       ByVal transferBy As Integer, _
                                       ByVal sortBy As Short, _
                                       ByVal allDates As Boolean, _
                                       ByVal FromDate As Date, _
                                       ByVal ToDate As Date, _
                                       ByVal direction As Short) As List(Of DataTransfer)

If I initialize the parameters in the configure data source wizard the report runs fine.
However I want to pass the paramenters at run time so in RenderBegin I do this:

        args.ParameterValues("sn") = Application.Current.Resources("sn")
        args.ParameterValues("transferBy") = rp.transferBy
        args.ParameterValues("sortBy") = rp.sortBy
        args.ParameterValues("allDates") = rp.allDates
        args.ParameterValues("FromDate") = rp.FromDate
        args.ParameterValues("ToDate") = rp.ToDate
        args.ParameterValues("direction") = rp.direction

When I was rusing a data method that returned a dataset instead of a list as above the report worked fine.
I changed it to return a list of my data bojects becuase I need to do some formating and the class already
handles everything.

when I run the report now I get the following error:

An error has occured while processing Report 'TransferReport':
An error has occured while resolving ObjectDataSource1 data source: cannot convert to type System.Int32

It must be talking about the parameters, so I modified the methods signature in an attempt to appeaise it,
I changed Interger to Int32, Shoert to Int16, and Date to Datetime, with no effect.
Stef
Telerik team
 answered on 11 Apr 2014
3 answers
127 views
I created a crosstable
Rows contains the projects
columns contains persons.
In the value fields i would like the sum of total spend time
At this the total it is returned like 1.04:00:00 (so 1 day and 4hrs)
however i want it in hours only, in this case 28:00:00
Tried to change it by setting the format on the field, but it doesn't work
any suggestions?
Nasko
Telerik team
 answered on 11 Apr 2014
1 answer
92 views
I have a designed report class which is called into another application using a report viewer.
But the problem here is that on page load i want to fill in the report parameter with a value with the code below

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Reporting;
using ReportTestss;
using ReportInstantiate;
 
namespace ReportInstantiate
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                test report = new test();
                report.ReportParameters["StudID"].Value = "SCH10001/2013";
            }
        }
    }
}

This code is not working for me.
What can be the issue.
KS
Top achievements
Rank 1
 answered on 11 Apr 2014
9 answers
730 views
Hi Everyone,
I've been getting  this error "PDF rendering format is not available" when I try to use the Telerik.Reporting.Processing.ReportProcessor.Render() method to create a byte array in PDF format that I can feed to the Response.BinaryWrite() method. Here is the code I'm using:

                Dim objUser As Elements.User = Session("User") 
                Dim report As Report = New GuideExport(objUser.QueryResults.XmlDocument) 
                Dim Buffer As Byte() = Telerik.Reporting.Processing.ReportProcessor.Render("PDF", _ 
                                       report, Nothing, "", "", Nothing) 
 
                Response.ClearContent() 
                Response.AppendHeader("content-length", Buffer.Length.ToString()) 
                Response.ContentType = "application/pdf" 
                Response.BinaryWrite(Buffer) 
                Response.Flush() 
                Response.Close() 

The code throws an error on line 3. Strangely enough though, I noticed that when I stop debugging in Visual Studio, then try to access the page, everything works the way that it should...

If anyone knows what is causing this problem, I would love some help. I've just started using Telerik Reporting, and I'm very impressed so far, but this is giving me a headache :)

Thanks,
Jeremy
Fridli Jacober
Top achievements
Rank 1
 answered on 11 Apr 2014
5 answers
699 views
We are using HtmlTextbox for reporting english and arabic data because exporting to word file doesn't work fine with database column directly .Now porblem in htmltextbox is, if data have wild character like  (&, /,$ , ; ) it gives error "An error has accured while processing HtmlTextBox".Kindly gives us solution as soon as possible thanks.
Stef
Telerik team
 answered on 10 Apr 2014
3 answers
359 views
Hi all, I'd appreciate some help with an error I don't understand.  I'm using Visual Studio.
I have two projects: a web site project and a telerik reports project.  The website project uses the reporting project.  Recently, I upgraded my Telerik reporting tools.

Now, I keep getting this error:
"The project currently contains references to more than one version of Telerik.Reporting, a direct reference to version 7.2.13.1016 and an indirect reference (through <project>.<reportName>) to version 7.2.13.1105. Change the direct reference to use version 7.2.13.1105 (or higher) of Telerik.Reporting."

I can't find version 7.2.13.1105 using either the Telerik Control Panel or Google.  I've used the upgrade wizard on both projects, bringing both to 7.2.13.1016.  As far as I can tell, the string "7.2.13.1105" literally doesn't exist in my solution.

Question 1: Can I use the upgrade wizard to "downgrade" the Telerik version, from 7.2.13.1105 in the case of the reporting project, to 7.2.13.1016?  I've already done this for both, and I was told it was successful, but I could understand how it wouldn't downgrade any existing reports.
Question 2: Where is this reference possibly happening?  It's not in any config files, and even the associated resx files for each report giving me the error has the correct Telerik version listed (7.2.13.1016).
Question 3: How did I get version 7.2.13.1105?  Why can't I find it now?
Question 4: How do I fix the error?

Thank you for your help.
Stef
Telerik team
 answered on 09 Apr 2014
11 answers
736 views
Hello,
 
I've tried everything, but Telerik Reporting Service doesn't work via HTTPS (SSL) protocol! Did anybody tried this configuration in practice? I'm not the only one, read discusion about this problem here: Silverlight forums
 
Our company is in decision phase which reporting system to use in Silverlight LOB applications and this problems may affect our choice ...

Best regards
 
 
 
Kenneth
Top achievements
Rank 1
 answered on 09 Apr 2014
13 answers
1.1K+ views
Hello,

The application that I am developing has a set of standard reports which are designed in Visual Studio as .cs classes. Now there is a new requirement that the users should be able to modify these standard reports and upload them back to the application as  a custom report. I use the 'Telerik.Reporting.XmlSerialization.ReportXmlSerializer' class to serialize the report and save it as .trdx file. Users then make the necessary changes to the report using the stand alone designer and then upload it back to the application which will be saved in the database as xml text. When that custom report is run, I deserialize it to a report object. But I get an error during deserialization as follows
<<ERROR START
Telerik.Reporting.Xml.XmlSerializerExcepion was unhandled by user code
  Message=An error has occurred during xml serialization. The xml serializer cannot resolve type with name:
  Source=Telerik.Reporting
  StackTrace:
       at Telerik.Reporting.Xml.ObjectXmlReader.ReadXmlElement(String name)
       at Telerik.Reporting.Xml.ObjectXmlReader.ReadCollection(Object collection)
       at Telerik.Reporting.Xml.ObjectXmlReader.ReadProperties(Object obj)
       at Telerik.Reporting.Xml.ObjectXmlReader.ReadObject(Type type)
       at Telerik.Reporting.Xml.ObjectXmlReader.ReadXmlElement(String name)
       at Telerik.Reporting.Xml.ObjectXmlReader.Deserialize()
       at Telerik.Reporting.XmlSerialization.ReportXmlSerializer.Deserialize(XmlReader reader)      
       at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
       at System.Windows.Controls.Primitives.ButtonBase.OnClick()
       at System.Windows.Controls.Button.OnClick()
       at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
       at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
       at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
       at System.Windows.Input.InputManager.ProcessStagingArea()
       at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
       at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
       at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
       at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
  InnerException:
ERROR END>>

The error does not occur when the report is uploaded without making any changes, but that is not of any use to me. The change that I made in the stand alone designer was adding a textbox to the report. I am using the 'Reporting Q2 2013' assemblies. Any help would be highly appreciated.

Thanks in advance
Shameer

Kerem
Top achievements
Rank 1
 answered on 09 Apr 2014
5 answers
151 views
  Hi,
     I have created a report in my VS2008 development solution. 
     My website project was within a solution, so all I had to do was add an existing project, add to the references, build, etc. 
     The problem is that I need to put this report on my dnn production website. It is only a website so it has no VS2008 solution to add an existing project.
      Since I am new to telerik reporting (and C#/.NET) , I have no idea how to get that going on my dnn site. Well, I do have ideas, but, I am wondering if you could point me in the right direction so that I can do it correctly ? 
      Would the concept be that I create a dll of the project and then add that dll to my dnn website references ?  (Told you I had ideas). 
      thanks for your advice ....
     
Divya
Top achievements
Rank 1
 answered on 09 Apr 2014
2 answers
87 views
Hello,

I have a label, which has numeric values on the telerik report - dynamically generated, but when the value is negative the minus sign in the preview appears as a box, is there any way to fix this, please lt me know if any other details are required.

Regards
Deepika


Nasko
Telerik team
 answered on 09 Apr 2014
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?