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
0
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
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()
0
Hello Lemon,
You need to provide the parameter name and value for the IMAGE rendering extension:
Regards,
Nasko
Telerik
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
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
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