Represents a JavaScript action.
For a list of all members of this type, see JavaScriptAction members.
System.Object
ceTe.DynamicPDF.Action
ceTe.DynamicPDF.JavaScriptAction
[Visual Basic]
Public Class JavaScriptAction
Inherits Action[C#]
public class JavaScriptAction : ActionFor more details on using the JavaScript action take a look at the JavaScript topic.
This example shows how to use the JavaScriptAction on a button.
[Visual Basic]
Imports System
Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.PageElements.Forms
Module MyModule
Sub Main()
' Create a PDF Document
Dim MyDocument As Document = New Document
' Create a PDF Page
Dim MyPage As Page = New Page(PageSize.Letter)
' Create an Button
Dim MyButton As Button = New Button("btn", 50, 50, 100, 50)
MyButton.Action = New JavaScriptAction("app.alert('Hello');")
MyButton.Behavior = Behavior.CreatePush("downLabel", "rolloverLabel")
MyButton.Label = "Push"
' Add the Button to the page
MyPage.Elements.Add(MyButton)
' Add pages to the document
MyDocument.Pages.Add(MyPage)
' Save the PDF document
MyDocument.Draw("C:\MyDocument.pdf")
End Sub
End Module
[C#]
using System; |
This class is a DynamicPDF Generator Enterprise Edition feature. One of the following licenses is required for non-evaluation usage:
Namespace: ceTe.DynamicPDF
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: ceTe.DynamicPDF (in ceTe.DynamicPDF.dll)
JavaScriptAction Members | ceTe.DynamicPDF Namespace
© Copyright 2007, ceTe Software