The extensions for WSPrint available with Javascript.
In addition to the main wsprint.dll, Synactive also provides a Javascript extension called wsprint.js. This file is a Javascript extension and contains some additional functions for the WSPRint functionality. These functions are explained below.
Use the tablePrint() function to print text in a table format. You will specify the contents of the columns in one row as as arra, and then create an array of the rows that you wish to print. Once the array is created, you can call the tablePrint() function on the array. An example is shown below.
var row1=["Row1 Col1","Row1 Col2"];
var row2=["Row2 Col1","Row2 Col2"];
var table=[row1,row2];
a.tablePrint(1);
We introduced the printCenterAlign() function previously. The text to be printed is passed to the function as a string. An example is shown below.
a.printCenterAlign('MYMART');
The printRightAlign() function works very similarly to the printCenterAlign() function above. The text is passed as a string and the result will be aligned to the right. An example is shown below.
a.printRightAlign('Right Align Text');