360Works WordXML Plugin/Documentation

From 360Works Product Documentation Wiki
Jump to: navigation, search

Contents

360Works WordXML Plugin User Guide

Created by IntelliJ IDEA. User: max Date: Jan 12, 2010 Time: 1:31:50 PM


360Works Plugin Setup Guides

See Plugins_101 for Error reporting, installation, registration, and more.

Function Summary

  • WXML_Create ( xml_text ; template_location ; output_location ) — This takes a word document, inserts the xml text into the appropriate location for custom controls, and then saves the modified document as a new file.
  • WXML_LastError ( ) —
  • WXML_SetErrorCapture ( errorCapture ) — Toggles error dialogs on or off.
  • WXML_Version ( ) —

Function Detail

WXML_Create ( xml_text ; template_location ; output_location )

This takes a word document, inserts the xml text into the appropriate location for custom controls, and then saves the modified document as a new file.

Parameters:

xmlText
The XML data corresponding to the custom controls in the Word document.
template
The docx word document that does not contain any custom data. It will not be modified.
output
A path to a non-existent docx word file which will be created with the custom XML data embedded into it. If the file already exists, it will be overwritten.

Returns: 1 on success, 'ERROR' if something goes wrong.

WXML_LastError ( )

WXML_SetErrorCapture ( errorCapture )

Toggles error dialogs on or off. When something unexpected happens, the plug-in will pop up a dialog displaying the error message. This makes it easy to see what went wrong. However, in some cases, you (the developer) may prefer to show your own message to the user, or possibly not show a message at all. In that case, you can call jdbcSetErrorCapture with a parameter of true. That will suppress the error dialog from appearing to the user.

Parameters:

errorCapture
set to true to suppress the default popups.


WXML_Version ( )

Personal tools
Namespaces

Variants
Actions
Plug-in Products
Other Products
Navigation
Toolbox