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

WebViewer Export to RTF throws exception - Attempt by security transparent method

1 Answer 142 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Frank
Top achievements
Rank 1
Frank asked on 06 Mar 2014, 10:25 AM
Hi,

I have just noticed an exception when trying to export a report to RTF from the WebViewer control which now throws the following error:

Attempt by security transparent method
'Telerik.Reporting.Rtf.ImageUtils.GetMetafileBounds(System.Drawing.SizeF)' to
call native code through method
'Telerik.Reporting.Rtf.GdiNativeMethods.GetDeviceCaps(IntPtr, Int32)' failed.
 Methods must be security critical or security safe-critical to call
native code.

The exception occurs on my local Dev Environment (Windows 8 with IIS 8) and our Staging server (Windows Server 2012 R2 with IIS 8.5) and is using .Net 4.5

Any ideas why this is occurring?

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 07 Mar 2014, 09:54 AM
Hello Frank,

There was such issue with RTF export in previous version. The issue is fixed as of Telerik Reporting Q3 2013 SP1 version 7.2.14.127. Please download and test it.

If the issue still appears, we will appreciate it if you open a support ticket and send us a sample project that reproduces the problem.

Regards,
Stef
Telerik

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

Tags
General Discussions
Asked by
Frank
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or