Export to pdf and word, and print when subreport as imagem from database

  • I am get a this error

    Exception Details: System.ArgumentException: Parameter is not valid.

    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:

    [ArgumentException: Parameter is not valid.]

    System.Drawing.Image.FromStream(Stream stream, Boolean useEmbeddedColorManagement, Boolean validateImageData) +1144615

    System.Drawing.Image.FromStream(Stream stream) +8

    Microsoft.ReportingServices.Rendering.WordRenderer.PictureDescriptor.InitImage(Byte[] aImgData, Byte[] aHash, Int32 imgIndex) +3778

    [LocalProcessingException: An error occurred during local report processing.]

    Microsoft.Reporting.WebForms.LocalReport.InternalRender(String format, Boolean allowInternalRenderers, String deviceInfo, PageCountMode pageCountMode, CreateAndRegisterStream createStreamCallback, Warning[]& warnings) +606

    Microsoft.Reporting.WebForms.LocalModeSession.RenderReport(String format, Boolean allowInternalRenderers, String deviceInfo, NameValueCollection additionalParams, Boolean cacheSecondaryStreamsForHtml, String& mimeType, String& fileNameExtension) +277

    Microsoft.Reporting.WebForms.ExportOperation.PerformOperation(NameValueCollection urlQuery, HttpResponse response) +292

    Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context) +233

    System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100

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

    I have a report with a list/table where one row has a subreport. In this subreport I have a table where one of the columns has jpg imagem from the database.

    The error only appear if I try to print, export to word and pfd (work only with excel).

    I dont get the error when I remove the image from the column in the subreport.

    Any ideia why this happens?

  • possibly is the size of the images. I moved into a Thumbnail and began to work well

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply