Telerik Forums
Reporting Forum
0 answers
121 views
I have got a deployment issue with a report that has got a chart in. I have deployed this to a test server running Windows Server 2008 and all was good, and of course the report runs in my development environment (Win 7).

However when I try to deploy this to the live server (Windows 2003 R2 64bit Service Pack 2) the report fails to run and generates the following exception, I have tried all of the permission suggestions and I cannot find anything else wrong. I am after any suggestions that will help get to the bottom of this please.

Event code: 3005

Event message: An unhandled exception has occurred.

Event time: 01/02/2011 22:23:19

Event time (UTC): 01/02/2011 22:23:19

Event ID: bdee2576e7304b0caac8745211abaed7

Event sequence: 43

Event occurrence: 1

Event detail code: 0

 

Application information:

    Application domain: /LM/W3SVC/488693489/Root-1-129410725642165128

    Trust level: Full

    Application Virtual Path: /

    Application Path: F:\Orchestrator\Web Sites\Test\

    Machine name: JR-ORCHESTRATOR

 

Process information:

    Process ID: 5664

    Process name: w3wp.exe

    Account name: NT AUTHORITY\SYSTEM

 

Exception information:

    Exception type: ExternalException

    Exception message: A generic error occurred in GDI+.

 

Request information:

    Request URL: http://notpubliched/Telerik.ReportViewer.axd?instanceID=465f332dcfd94f899feee90af07ccb2f&culture=en-GB&uiculture=en-US&optype=Report&PageIndex=0&Refresh=true

    Request path: /Telerik.ReportViewer.axd

    User host address: IP Address

    User: sa

    Is authenticated: True

    Authentication Type: Forms

    Thread account name: NT AUTHORITY\SYSTEM

 

Thread information:

    Thread ID: 9

    Thread account name: NT AUTHORITY\SYSTEM

    Is impersonating: False

    Stack trace:    at System.Drawing.Image.Save(Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams)

   at System.Drawing.Image.Save(Stream stream, ImageFormat format)

   at Telerik.Reporting.HtmlRendering.ChartRenderer.SaveImageInStream(HtmlRenderingContext context, Image image, String mimeType)

   at Telerik.Reporting.HtmlRendering.ChartRenderer.RenderInternal(ProcessingElement processingElement, HtmlRenderingContext context)

   at Telerik.Reporting.HtmlRendering.HtmlItemRender.Telerik.Reporting.HtmlRendering.IReportItemRender.Render(ProcessingElement processingElement, RenderingContext context)

   at Telerik.Reporting.HtmlRendering.RenderingContext.Render(ReportItemBase item)

   at Telerik.Reporting.HtmlRendering.Matrix.RenderInternal(HtmlRenderingContext context)

   at Telerik.Reporting.HtmlRendering.Matrix.Render(HtmlRenderingContext context)

   at Telerik.Reporting.HtmlRendering.ReportSectionBaseRenderer.RenderInternal(ProcessingElement processingElement, HtmlRenderingContext context)

   at Telerik.Reporting.HtmlRendering.HtmlItemRender.Telerik.Reporting.HtmlRendering.IReportItemRender.Render(ProcessingElement processingElement, RenderingContext context)

   at Telerik.Reporting.HtmlRendering.RenderingContext.Render(ReportItemBase item)

   at Telerik.Reporting.HtmlRendering.HtmlPage.RenderReportSections(HtmlWriter bodyWriter)

   at Telerik.Reporting.HtmlRendering.HtmlPage.RenderBody(HtmlWriter bodyWriter)

   at Telerik.Reporting.HtmlRendering.HtmlPage.Render(HtmlTextWriter primaryWriter, HtmlRenderingContext renderingContext)

   at Telerik.Reporting.HtmlRendering.HtmlReport.Render(HtmlTextWriter writer)

  at Telerik.Reporting.HtmlRendering.HtmlRenderingExtension.Telerik.Reporting.Processing.IRenderingExtension.Render(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback)

   at Telerik.Reporting.Processing.ReportProcessor.Render(IList`1 reports, ExtensionInfo extensionInfo, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback)

   at Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, IReportDocument reportDocument, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback)

   at Telerik.ReportViewer.WebForms.ServerReport.Render(HttpResponse response, String format, Int32 pageIndex)

   at Telerik.ReportViewer.WebForms.ReportPageOperation.PerformOperation(NameValueCollection urlQuery, HttpContext context)

   at Telerik.ReportViewer.WebForms.HttpHandler.ProcessRequest(HttpContext context)

   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

 

Greg Duffield
Top achievements
Rank 1
 asked on 02 Feb 2011
4 answers
265 views
Hi,

While report viewer correctly identifies any DateTime field data type and applies proper formatting. The ExportToExcell operation yield the the same field as double (or float).

The work around is to force Telerik.Reporting.TextBox.Format to "{0:G}".

I have published the test project here: http://dl.dropbox.com/u/2192462/Telerick.Reporting.Bug/WpfApplication1.7z

Cheers,


taras
Top achievements
Rank 1
 answered on 01 Feb 2011
2 answers
148 views
I have read through the documentation and viewed the Telerik TV video on Drilldown Action, but cannot get it to work like I need.  I have a report with a parent group of Employee Team Names and a child group containing the employees in each of the teams.  The parent group has just the team name and has no action.  The employee group has the employee name, which has the toggle visibility action set.  There is also a couple of other fields of data for each employee in this group level but they do not have any action set.  Finally I have a detail section containing  detail data I want to display for each employee when I expand the icon on the employee name.  The edit toggle target for the employee name action is the detail section name and the "expand" check box is unchecked.  What I expected was a report that listed each team name and the employee in that team with an unexpanded icon next to each employee name, however what I get when I preview the report is all of the detail section data for each employee already expanded.  I can click on the icon and hide the detail data, but what I want when the report is generated is the exact opposite.  The visible properties for each field is the detail section is obviously set to true.  I have tried different combinations but nothing gives me what I want.  I hope this somewhat lengthy explanation of the situation is clear.  Thanks in advance.
Chuck Harrington
Top achievements
Rank 1
 answered on 01 Feb 2011
1 answer
107 views
Hi all

I have a report that contains several textboxes in detail band. They don't fit on a single row so I've created a second and a third row of textboxes. The entire detail section looks like a table, but it's not, because the textboxes have different widths.

Some of the values overflow, so the corresponding textboxes increase their height to accomodate the text. In this case they overlap over the textboxes beneath them. I cant' dock/anchor the textobxes because they still don't show correctly and I am kind of stuck. What I actually need is "dock top margin to the bottom margin of the control above; if that one grows, you move down, and also ALL the texboxes next to you"

I am attaching a screenshot. in the red rectangle there's a row of textboxes, which I need to be the same height. The second one is taller, but I need the one in the left and the two in the right to have the same height.

Also, if any of the textboxes above increases it's height, I need ALL the textboxes to move down to avoid overlap.

Is this possible?
Peter
Telerik team
 answered on 01 Feb 2011
1 answer
385 views
Hi! I have the following code, but i cant get the muliple values in parameter multi value select to be passed in. What is the correct way to pass an an integer array to my method? Thankx.  Below is the code: the method GetManyCustomers takes in int[] .I also put this code in the report constructor.
CustomerFactory f = new CustomerFactory();
              Telerik.Reporting.ReportParameter param1 = new Telerik.Reporting.ReportParameter();
              param1.Name = "CustomerName";
              param1.Type = Telerik.Reporting.ReportParameterType.Integer;
              param1.AllowBlank = false;
              param1.Text = "FirstName";
              param1.Visible = true;
              param1.MultiValue = true;
              param1.AvailableValues.DataSource = f.GetCustomerNames();
              param1.AvailableValues.ValueMember = "=Fields.CustomerID";
              param1.Value = 0;
              this.ReportParameters.Add(param1);
              this.DataSource = f.GetManyCustomers(new int[] { Int32.Parse("=Parameters.CustomerName.Value") });
Peter
Telerik team
 answered on 01 Feb 2011
1 answer
277 views
Hi
I have saved latitude and longitudes in my database. I want to show location name from google maps api. API use javascript where we pass latitude and longitudes and it gives us address. Now how can i use it in telerik reports to show location
I have previously done it in crystal but how can i do it in telerik
Is there any way to do it?
Peter
Telerik team
 answered on 01 Feb 2011
1 answer
59 views
I have created a report by using the WCF service as per the vedio http://tv.telerik.com/watch/reporting/video/telerik-reporting-getting-started-with-silverlight-report-viewer

My WCF Service requires an arugument to be passed to get the result..
______________________________________________________________________________________________
For example
  Dim m_nPatientId As Integer = 109
 'For Patient History
    Public Function GetPatientDetials() As List(Of DAOfficeReports.EMRRepotsServiceReference.PatientL)
        Dim objPatientDtl As New List(Of EMRRepotsServiceReference.PatientL)
        objPatientDtl = objEmrService.GetPatientDetials(m_nPatientId)  *Here i should pass patient id from Silverlight)
        Return objPatientDtl 'For Patient History 
    End Function
_____________________________________________________________________________________________________
Iam able to pass a static argument but could'nt pass it from silverlight application dynamically to Report class library..

Pls help me...


Reena

Peter
Telerik team
 answered on 01 Feb 2011
7 answers
137 views
Hello,
currently I'm displaying reports using an ASP.NET viewer inside an aspx page,and everything works fine, I just want to move to the SL reportviewer in order to show direcly inside SL... how do I pass the parameters at the button's click?
I've seen this post where on the render begin it passes the parameters.... how do I do this on btnLoad click?
Thanks

Paolo
Peter
Telerik team
 answered on 01 Feb 2011
3 answers
93 views
Hi
 I am using (Silverlight Bussiness application) telerik reportviewer control in xaml file and i have added  telerik report file in serverside application with cubedatasource[mdx query], please let me know how to map the telerik report file to reportviewer control which is in client side(xaml file).


Thnks in Advance
Massimiliano Bassili
Top achievements
Rank 1
 answered on 01 Feb 2011
0 answers
86 views
Hi All,

Our company has recently taken over a C# project that uses Telerik Reporting as the previous developer is retiring. However, we are having a couple of problems and as we are not experienced Telerik users we dont really know how to solve them, so im hoping that someone in the community might be able to help!

Our first problem is that one of our reports has simply broken and no longer works. When trying to view the report "invoice", either through visual studio preview, or in development build, or in actual installed product, we simply get the message "An error has occurred while processing Report 'Invoice': Method ctor() not found.

So, I went into the invoice.cs file and checked out the constructor code:

namespace TInvoice {
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;
    using Telerik.Reporting;
    using Telerik.Reporting.Drawing;
    using System.Collections.Generic;
 
    /// <summary>
    /// Summary description for Invoice.
    /// </summary>
    internal partial class Invoice : Telerik.Reporting.Report {
 
        const int LINES_PER_PAGE = 17;
 
        public Invoice( ) {
 
            /// <summary>
            /// Required for telerik Reporting designer support
            /// </summary>
            InitializeComponent( );
 
            //
            // TODO: Add any constructor code after InitializeComponent call
            //
        }
 
        internal Invoice( BL_TInvoice bl ) {
            //int inooflines;
 
            InitializeComponent( );
            //_bl = bl;
            //_ilrep = new InvoiceLine( _bl );
            //subReport1.ReportSource = _ilrep;
            //inooflines = _ilrep._bl.listinvlines.Count;
            //inoofpages = inooflines / LINES_PER_PAGE;
            //if ( inooflines != inoofpages * LINES_PER_PAGE )
            //    inoofpages++;
            //double fnet = 0;
            //for ( int i = 0; i < inoofpages; i++ ) {
            //    int startindex = i * LINES_PER_PAGE;
            //    int endindex = startindex + 16;
            //    for ( int i1 = startindex; i1 <= endindex; i1++ ) {
            //        if ( i1 < _ilrep._bl.listinvlines.Count )
            //            fnet += _ilrep._bl.listinvlines[ i1 ].amount;
            //    }
            //    listcf.Add( fnet );
            //}
        }

As part of my attempt to track down the problem, I commented out everything that was none essential, including all code within each method bound to an item on the report. However, this did not fix the problem. Only when I commented out the "InitialiseComponent" methods did I stop getting the error and was just left with a blank page. This leads me to believe that the problem must lie in the difference between version 3 (which previous developer was using) and version 4 (Q3 2010) which we have recently purchased. The reason I believe this is all the code within the "InitialiseComponent" function is auto-generated.

I have run the upgrade wizard within Visual Studio but that didnt fix the problem. Any help would be appreciated.


The second problem we are having is with a quoting report. The report displays perfectly, everything in the correct place and with all lines of the quote exactly as we'd expect. It simply reads lines from our database and then displays them. However, when we click "print", the printout is incorrect. The printout actually doubles every line of our report. For example, we have one line of the report which says "Sales Labour: 1 fitter x 12 hours £100". The next line is "Supervisor: 1x supervisor x 5 hours £70" and then at the bottom of the report we have totals etc. However, on the printout we get "Sales Labour: 1 fitter x 12 hours £100" printed out twice, replacing the supervisor line, but then the totals at the bottom counts the fitter line twice plus the supervisor line twice, despite the supervisor line not displaying. We havent fully investigated this problem yet but I was wondering if this was a more general issue with an easy solution before I have to delve into it.

Many thanks!
Steven
Top achievements
Rank 1
 asked on 01 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?