Is there any way to export reporting as JPEG?

7 posts, 0 answers
  1. Lemon
    Lemon avatar
    11 posts
    Member since:
    Jul 2014

    Posted 18 Aug 2015 Link to this post

    Is there any way to export my report as JPEG?

    I'm used to designing my report by Telerik ASP.NET MVC report .

    Hope to get some helps.
  2. Nasko
    Admin
    Nasko avatar
    909 posts

    Posted 18 Aug 2015 Link to this post

    Hello Lemon,

    The Image rendering extension supports JPEG rendering of the reports. You can use the rendering extension programmatically or you can configure the Image Device Information Settings OutputFormat so that the default export option in the report viewer will save the file as JPEG. Examples for configuring the device information settings in the application configuration file are available in the Extensions Element help article.

    Regards,
    Nasko
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft banner
  4. Lemon
    Lemon avatar
    11 posts
    Member since:
    Jul 2014

    Posted 18 Aug 2015 Link to this post

    Thanks Nasko.

    I'll try it.

  5. Lemon
    Lemon avatar
    11 posts
    Member since:
    Jul 2014

    Posted 19 Aug 2015 Link to this post

    Hi,this is my configuration .

     

    1.<Extension name="JPEG"
    2.           description="JPEG File"
    3.           type="Telerik.Reporting.ImageRendering.ImageReport, Telerik.Reporting, Version=9.1.15.624, Culture=neutral, PublicKeyToken=a9d7983dfcc261be">
    4.  <Parameters>
    5.    <Parameter name="OutputFormat" value="JPEG"></Parameter>
    6.  </Parameters>
    7.</Extension>

    As I try to export , I got an exception .

    01.buffer cannot be null. parameter name buffer
    02. 
    03.System.ArgumentNullException",
    04.stackTrace:
    05.at System.IO.MemoryStream..ctor(Byte[] buffer, Boolean writable)
    06.at System.IO.MemoryStream..ctor(Byte[] buffer) at Telerik.Reporting.Services.WebApi.ReportsControllerBase.GetDocument(String clientID, String instanceID, String documentID)
    07.at lambda_method(Closure , Object , Object[] )
    08.at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)
    09.at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)
    10.at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken) --- End of stack trace from previous location where exception was thrown ---
    11.at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    12.at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    13.at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeUsingResultConverterAsync>d__8.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    14.at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    15.at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext() --- End of stack trace from previous location where exception was thrown ---
    16.at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    17.at System.Web.Http.ApiController.<InvokeActionWithExceptionFilters>d__1.MoveNext()
    Did ​I omit anything?

     

  6. Nasko
    Admin
    Nasko avatar
    909 posts

    Posted 21 Aug 2015 Link to this post

    Hello Lemon,

    You need to provide the parameter name and value for the IMAGE rendering extension:
    <Telerik.Reporting>
      <Extensions>
        <Render>
          <Extension name="IMAGE" description="Image JPEG">
            <Parameters>
              <Parameter name="OutputFormat" value="JPEG"/>
            </Parameters>
          </Extension>
        </Render>
      </Extensions>
    </Telerik.Reporting>


    Regards,
    Nasko
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  7. Lemon
    Lemon avatar
    11 posts
    Member since:
    Jul 2014

    Posted 17 Feb in reply to Nasko Link to this post

    I changed my configuration like:
    1.<Extension name="IMAGE" description="Image JPEG">
    2. <Parameters>
    3.  <Parameter name="OutputFormat" value="JPEG"/>
    4. </Parameters>
    5.</Extension>

     

    but  I still get the same exception.

    Telerik Reporting Version :Q1 2016 SP1

  8. Nasko
    Admin
    Nasko avatar
    909 posts

    Posted 17 Feb Link to this post

    Hello Lemon,

    In order to advise further, we will need to debug a runnable sample project exhibiting the issue. Please open a new support ticket where you can zip and attach the sample project.

    Regards,
    Nasko
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
DevCraft banner