This is a migrated thread and some comments may be shown as answers.

Is there any way to export reporting as JPEG?

6 Answers 466 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
CrazyLemon
Top achievements
Rank 1
CrazyLemon asked on 18 Aug 2015, 07:35 AM

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.

6 Answers, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 18 Aug 2015, 09:58 AM
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
0
CrazyLemon
Top achievements
Rank 1
answered on 18 Aug 2015, 03:27 PM

Thanks Nasko.

I'll try it.

0
CrazyLemon
Top achievements
Rank 1
answered on 19 Aug 2015, 05:07 AM

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?

 

0
Nasko
Telerik team
answered on 21 Aug 2015, 02:31 PM
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
0
CrazyLemon
Top achievements
Rank 1
answered on 17 Feb 2016, 08:15 AM
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

0
Nasko
Telerik team
answered on 17 Feb 2016, 11:00 AM
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
Tags
General Discussions
Asked by
CrazyLemon
Top achievements
Rank 1
Answers by
Nasko
Telerik team
CrazyLemon
Top achievements
Rank 1
Share this question
or