Telerik Forums
Reporting Forum
1 answer
95 views
Hi

I am using Silverlight and render reports via Telerik Silverlight ReportViewer. Everything works fine except when the data is large (5000 rows). The report starts getting data and display the busy animation. After a while it just throws an exception "An exception occurred during this operation, making the result invalid. Check InnerException for exception details"

Is there something I can do for larger data?
How can I view the Inner exception, because the error it currently gives me, means nothing to me?
Steve
Telerik team
 answered on 04 Feb 2011
1 answer
602 views

Hi Support Team,

I am using Telerik reporting V4.2

 

Value

Vertical Relevance (%)

200

20

300

30

500

50

Total

1000

100

 

I want to calculate vertical relevance field as shown in above.

Formula:

Vertical relevance = (Value/ Total value) * 100

Example: (of first row)

                20% = (200/1000) * 100

I am get not sum (total value = 1000) at row level, it return 200 for total.

 Please help me to calculate Vertical relevance.

Thanks in advance for support.

- Kalpesh

Peter
Telerik team
 answered on 04 Feb 2011
0 answers
59 views
Hello,

When I remove the report project (in fact, Unload Project) of my Silverlight/Web projets, everthing works nice.

When the report project is include in my project, after about 5 ou 6 minutes, every access to my DomainService become denied (every DS have [RequiresAuthentication]).

Someone call tell my why???

Louis Bouchard
Top achievements
Rank 1
 asked on 04 Feb 2011
1 answer
41 views
Hi ,
      We are using the telerik reporting q2 2010.In that ,I have used the Action property for Navigate to report purpose.We have one reportviewer , by clicking one field of the main report it will open the another report within the same reportviewer.I got the error message "
Report is unavailable or session has expired.
--------------------------------------------------------------------------------
Please, refresh the page

"
while I have click the browser's back button at first time in the second report(report within the report).After that it is working fine.

Thanks in Advance.
Seeni
Peter
Telerik team
 answered on 03 Feb 2011
3 answers
183 views
I have a report with a PictureBox in the PageHeaderSection.  I've set a border color, style, and width for all four sides, and three sides render as expected, but the right side is missing.

Here's a screenshot of it in design mode: http://comsimplicity.com/SCREENSHOTS/Telerik/PictureBoxBorderDesignMode.gif
And here's one of it in HTML preview mode: http://comsimplicity.com/SCREENSHOTS/Telerik/PictureBoxBorderPreviewMode.gif

The .gif itself is 205x85 pixels, and I've tried widening the PictureBox way beyond that width.

Any clues?
Hrisi
Telerik team
 answered on 03 Feb 2011
5 answers
1.0K+ views
Hello,

I'm currently working with telerik reporting, and I'm displaying a chart for every row of the datasource of the report.
The chart displays a stacked bar chart type. I have a very similar issue like this post:

The difference is that I'm using a report to display the chart, and since I'm in the environment of the report the chart control have only 4 events in which the ItemDataBoundItem, the code I wrote seems to have no visual effect over the chart:

Private Sub chtDefectsByFamily_ItemDataBound(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles chtDefectsByFamily.ItemDataBound 
        Dim ChartItem As Telerik.Reporting.Processing.Chart = DirectCast(sender, Telerik.Reporting.Processing.Chart) 
        Dim ci As Telerik.Reporting.Chart = TryCast(ChartItem.ItemDefinition, Telerik.Reporting.Chart) 
        For Each seriesItem As Telerik.Reporting.Charting.ChartSeries In ci.Series 
            seriesItem.Appearance.LabelAppearance.LabelLocation = Charting.Styles.StyleSeriesItemLabel.ItemLabelLocation.Inside 
            seriesItem.Appearance.TextAppearance.TextProperties.Color = Color.White 
            For Each serieItem As Telerik.Reporting.Charting.ChartSeriesItem In seriesItem.Items 
                If serieItem.YValue = 0 Then 
                    serieItem.Label.Visible = False 
                End If 
                serieItem.SetDirty() 
            Next 
            seriesItem.SetDirty() 
        Next 
    End Sub 

Is it possible to modify the chart during/after the binding of the data?? or is there any other way to hide the labels before the chart is shown?
Deepak Shakya
Top achievements
Rank 1
 answered on 03 Feb 2011
0 answers
108 views
I have a report where there are a set of known values which are dynamically set.  The detail section shows numbers that are used for comparative purposes.  I am looking to create a binding or some other method that will evaluate the difference between the two values.

Example: 

Design surface:
In groupheadersection1 I have a textbox  txt1
In detailsection1  I have a textbox txt2 with a value of =fields.someval
In detailsection1 I have a textbox  txt3 which needs to show the difference between txt1.value and txt2.value

Code:
Partial Public Class tstClass
    Inherits Telerik.Reporting.Report
    Public Sub New(ByVal _ds As DataSet)
        InitializeComponent()
        txt1.Value = _ds.Tables(0).Rows(0).Item(0)
        Me.DataSource = _ds.Tables(1)
    End Sub



Accessing the value via expressions seems to fail.  I created a binding, to a public shared function, but of course the shared function cannot access txt1.

Any ideas on how to get the value for txt1.value-txt2.value??

Joel
Top achievements
Rank 2
 asked on 02 Feb 2011
1 answer
68 views

I have a website that uses the report control. In the development environment, the control works perfectly and you can export the report to all available formats. In the QA environment, without any change in the code, the XPS format disappears from the list of formats you can export the report. In the production environment also disappear Excel and PDF formats (essential for me). What could be happening? What should I do to display these export formats?

Thanks in advance.

Steve
Telerik team
 answered on 02 Feb 2011
3 answers
316 views
Hello.
We have a problem with printing reports "Telerik Reporting", to see the document on the screen goes well, but when printing is defective, the characters saen a bit garbled.The printer we are using is a dot matrix Epson LX300 +, the server operating system where the application installed is windows 2008 server and workstations from where we made prints are windows xp, windows vista, windows 7. Most of our clients manage these types of printers. Obviously the printer is working properly and we have made prints from other applications and does it well. We also print a report of those who are on the page of you and the result was flawed. I wonder if they have any idea what may be happening, thanks
Massimiliano Bassili
Top achievements
Rank 1
 answered on 02 Feb 2011
6 answers
294 views

I have a very simple report (a blank one actually with a title) that I am trying to export as a pdf file. If I run it from a console app with the same code, then it creates the pdf file correctly. If I try it from within a web page it crashes. Same report works fine in development from a web page, just in production it doesnt work.

Its obviously looking for something, but I cant work out what.

Anyone have any idea what could be missing?

The bin folder for the web app includes Telerik.Reporting.dll, as well as Telerik.ReportViewer.WebForms.dll just in case.

The stack trace is:

Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.   
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.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.  
 
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:   
 
 
[ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.]  
   System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark) +0  
   System.Reflection.Assembly.GetTypes() +105  
   Telerik.Reporting.Processing.Expressions.NameSpaceResolver.Resolve(Assembly assembly) +14  
   Telerik.Reporting.Processing.Expressions.ExpressionContext.ResolveNameSpaces() +97  
   Telerik.Reporting.Processing.Expressions.ExpressionContext..ctor(Type methodInfoSourceType) +159  
   Telerik.Reporting.Processing.ReportProcessor.ProcessReport(IReportDocument reportDocument, String& documentName) +67  
   Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, IReportDocument reportDocument, Hashtable deviceInfo, CreateStream createStreamCallback, String& documentName) +263  
   Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, IReportDocument reportDocument, Hashtable deviceInfo) +108  
   CCConnect.TestPage.TestButton_Click(Object sender, EventArgs e) +197  
   System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +111  
   System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +79  
   System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10  
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13  
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175  
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565  
 
   
 
 
--------------------------------------------------------------------------------  
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053  

The simple code is:

        protected void TestButton_Click(object sender, EventArgs e)  
        {  
            TestReport r = new TestReport();  
            Hashtable deviceInfo = new Hashtable();  
            deviceInfo["FontEmbedding"] = "Subset";  
            Telerik.Reporting.Processing.ReportProcessor RP = new Telerik.Reporting.Processing.ReportProcessor();  
            byte[] buffer = RP.RenderReport("PDF", r, deviceInfo).DocumentBytes;  
 
            string myPath = Properties.Settings.Default.MerchantRequestLocalPath;  
            string pdfFile = myPath + @"\" + DateTime.Now.ToString("HHmmss") + ".pdf";  
            FileStream fs = new FileStream(pdfFile, FileMode.Create);  
 
            fs.Write(buffer, 0, buffer.Length);  
            fs.Flush();  
            fs.Close();  
 
Rob
Top achievements
Rank 1
 answered on 02 Feb 2011
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?