Options

RTC-Error with a Report

stonystony Member Posts: 122
edited 2012-07-04 in NAV Three Tier
Hello,
I built a report, which prints labels. It can be printed from a sales order for all involved sales line labels. The number of individual labels dependent from the input set in the respective sales line. This report contains some embedded images (14 images with a total size of approximately 3.3MB). If I select a sales order which given only three labels, everything works perfektly. As soon as I Selct a sales order with several lines, RTC crashes. I get the following message on the server:

Ereignistyp: Fehler
Ereignisquelle: MicrosoftDynamicsNAVServer
Ereigniskategorie: Keine
Ereigniskennung: 0
Datum: 24.05.2012
Zeit: 10:57:02
Benutzer: Nicht zutreffend
Computer: ZSENS17
Beschreibung:
Service: MicrosoftDynamicsNavServer$TesTXXX
User: testXXX-GMBH\abc
Type: System.Runtime.InteropServices.ExternalException
ErrorCode: -2147467259
Message: Allgemeiner Fehler in GDI+.
StackTrace:
bei Microsoft.Dynamics.Nav.Runtime.NavApplicationMethod.InvokeMethod(Object obj, String methodName, Object[] args)
bei Microsoft.Dynamics.Nav.Service.NSField.ActionField(NavConnection con)
bei Microsoft.Dynamics.Nav.Service.NSField.Action(NavConnection connection)
bei Microsoft.Dynamics.Nav.Service.NSService.<>c__DisplayClass21.<ActionField>b__20(Connection connection)
bei Microsoft.Dynamics.Nav.Service.NSService.ExecuteOperation[T](String operationName, ServiceOperation`1 operation, Connection connection, Boolean revertLanguageChanges, WindowsIdentity impersonationIdentity)
Source: Microsoft.Dynamics.Nav.Ncl
Type: System.Reflection.TargetInvocationException
Message: Ein Aufrufziel hat einen Ausnahmefehler verursacht.
StackTrace:
bei System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
bei System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
bei System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
bei System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
bei Microsoft.Dynamics.Nav.Runtime.NavApplicationMethod.InvokeMethod(Object obj, String methodName, Object[] args)
Source: mscorlib
Type: System.Runtime.InteropServices.ExternalException
ErrorCode: -2147467259
Message: Allgemeiner Fehler in GDI+.
StackTrace:
bei Microsoft.Dynamics.Nav.Service.NSClientCallback.ReportPageReady(ReportRequest reportRequest)
bei Microsoft.Dynamics.Nav.Runtime.NavReport.SendDataSetPieceToTargetDevice(Boolean isFinalDataSetPiece)
bei Microsoft.Dynamics.Nav.Runtime.NavReport.ExecuteReport(Boolean displayResult)
bei Microsoft.Dynamics.Nav.Runtime.NavReport.RunReportInternal(NavRecord record, Boolean displayResult)
bei Microsoft.Dynamics.Nav.Runtime.NavReport.RunReport(Nullable`1 requestWindow, Nullable`1 systemPrinter, Boolean runReportModal, NavRecord record, IList`1 reportTextualFilters)
bei Microsoft.Dynamics.Nav.Runtime.NavReport.RunReport(Int32 reportId, Nullable`1 requestWindow, Nullable`1 systemPrinter, Boolean isRunningAsModal, NavRecord record, IList`1 textualFilters)
bei Microsoft.Dynamics.Nav.Runtime.NavReport.Run(Int32 reportId, Boolean requestWindow, Boolean systemPrinter, NavRecord record)
bei Microsoft.Dynamics.Nav.BusinessApplication.Page50032.Control1000000001_OnAction()
Source: Microsoft.Dynamics.Nav.Service
Type: System.Runtime.InteropServices.ExternalException
ErrorCode: -2147467259
Message: Allgemeiner Fehler in GDI+.
StackTrace:
bei System.Drawing.Imaging.Metafile..ctor(Stream stream)
bei Microsoft.Dynamics.Nav.Client.ReportRenderer.ReportPrintPage(Object sender, PrintPageEventArgs printPageEventArguments)
bei System.Drawing.Printing.PrintDocument.OnPrintPage(PrintPageEventArgs e)
bei System.Drawing.Printing.PrintDocument._OnPrintPage(PrintPageEventArgs e)
bei System.Drawing.Printing.PrintController.PrintLoop(PrintDocument document)
bei System.Drawing.Printing.PrintController.Print(PrintDocument document)
bei System.Drawing.Printing.PrintDocument.Print()
bei Microsoft.Dynamics.Nav.Client.ReportRenderer.PrintReport(Boolean showPrintStatus)
bei Microsoft.Dynamics.Nav.Client.ServiceClientCallback.ReportPageReadyWinFormsPrintDirectly(ReportRequest reportRequest, ReportExecutionItem reportExecutionItem, Boolean isFirstPage)
bei Microsoft.Dynamics.Nav.Client.ServiceClientCallback.<>c__DisplayClass19.<ReportPageReady>b__18()
bei Microsoft.Dynamics.Nav.Client.ServiceClientCallback.<>c__DisplayClass1.<RunClientRequest>b__0()
bei Microsoft.Dynamics.Nav.Client.ServerInvocationManager.WaitForServerResponse(IAsyncResult asyncResult, ThreadCallbackContext threadEventContext)
Source: System.Drawing

The preview function. Currently I have the following version 6.00.32964 in use.
Could this be a problem with the embedded images?

thanks
stony

Comments

  • Options
    deV.chdeV.ch Member Posts: 543
    Your error message says: Message: Allgemeiner Fehler in GDI+.

    GDI+ is the drawing engine of .net winforms, so i guess the porbliem lies in the report renderer, we can only assume where the problem lies.
    Does the defined mime-type match with the actual type of the images?
  • Options
    stonystony Member Posts: 122
    I have recreated the report and now it works.
    thanks
    stony
Sign In or Register to comment.