AUTHOR: Stephania Tapela
DATE POSTED: April 19, 2017
Article information
Article relates to
Telerik Reporting
Created by
Stef, Telerik
Last modified
April19, 2017
Last modified by
PROBLEM How to Expand the PDF Reader's Bookmarks pane on opening a PDF file produced by Telerik Reporting, when the report has a configured Document Map. DESCRIPTION When you create Telerik Reports you can provide internal navigation in the report via Document Map. This interactivity feature is supported by Adobe PDF Readers and it can be controlled by adding Adobe JavaScript in the PDF produced by the Reporting engine. SOLUTION The Adobe JavaScript you need is as follows:
app.execMenuItem('ShowHideBookmarks')
//C#
var deviceInfo =
new
System.Collections.Hashtable();
deviceInfo[
"JavaScript"
] =
"app.execMenuItem('ShowHideBookmarks')"
;
'VB.NET
'set any deviceInfo settings if necessary
set
if
Dim deviceInfo As New System.Collections.Hashtable()
deviceInfo.Add(
,
)
<
configuration
>
configSections
section
name
=
"Telerik.Reporting"
type
"Telerik.Reporting.Configuration.ReportingConfigurationSection, Telerik.Reporting, Version=x.x.x.x, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"
allowLocation
"true"
allowDefinition
"Everywhere"
/>
</
…
Telerik.Reporting
extensions
render
extension
"PDF"
parameters
parameter
value
Resources Buy Try