Click or drag to resize
AceoffixCtrlJsFunction_OnWordDataRegionClick Property
Sets a JavaScript function for OnWordDataRegionClick event.

Namespace: Aceoffix
Assembly: Aceoffix (in Aceoffix.dll) Version: 5.0.0.1
Syntax
public string JsFunction_OnWordDataRegionClick { get; set; }

Property Value

Type: String
Remarks

This event is triggered when user clicks the DataRegion predefined in Word document.

If you want to capture this event, you should define a JavaScritpt function in the ASPX file of the current page.

In the JavaScript function, you can return a value to set the value of DataRegion.

Examples

The following code example shows how to use the JsFunction_OnWordDataRegionClick property.

AceoffixCtrl1.JsFunction_OnWordDataRegionClick = "OnWordDataRegionClick()";

And then, you should define OnWordDataRegionClick() function in ASPX file of the current page.

JavaScript
<script language="javascript" type="text/javascript">
    function OnWordDataRegionClick(Name, Value, Left, Bottom) {
        if (Name == "ACE_N004") {
            return "Developer can raise a dialog box at here and get the value inputted by user.";
        }
    }
</script>
See Also