/***** Start printing a row *************************************/
rcy = VRMethod( "PRT_1", "StartRow");
/***** write to col 1 *******************************************/
rcy = VRMethod( "PRT_1", "StartCol", 1);
rcy = VRMethod( "PRT_1", "PrintRight", 'Helvetica', 10, 'This is some text in the first column. It is not very long,');
/***** write to col 2 *******************************************/
rcy = VRMethod( "PRT_1", "StartCol", 2);
rcy = VRMethod( "PRT_1", "PrintJustified", 'Helvetica Bold', 10, 'This is some text in the second column. It is not very long,');
rcy = VRMethod( "PRT_1", "PrintJustified",,,'This text has several lines and with a bit of luck should force a new page.');
rcy = VRMethod( "PRT_1", "PrintJustified",,,'If it does then we have a test of a cell rolling over from one page to the next and we will not have to write any more.');
/***** write to col 3 *******************************************/
rcy = VRMethod( "PRT_1", "StartCol", 3);
rcy = VRMethod( "PRT_1", "PrintCentered", 'Helvetica Bold', 14, 'This is some text in the third column. It is not very long,');
/***** print out the row ****************************************/
rcy = VRMethod( "PRT_1", "EndRow");
/***** start the next row ***************************************/
rcy = VRMethod( "PRT_1", "StartRow");
/***** write to col 1 *******************************************/
rcy = VRMethod( "PRT_1", "StartCol", 1);
rcy = VRMethod( "PRT_1", "PrintRight", 'Times New Roman', 10, 'This is some text in the first column. It is not very long,');
/***** write to col 2 *******************************************/
rcy = VRMethod( "PRT_1", "StartCol", 2);
rcy = VRMethod( "PRT_1", "PrintLeft", 'Helvetica Bold', 10, 'This is some text in the second column. It is not very long and should be left justified.');
rcy = VRMethod( "PRT_1", "PrintCentered",,,'This text has several lines and with a bit of luck should be centred.');
rcy = VRMethod( "PRT_1", "PrintJustified",,,'This text here was designed to be justified and should roll over several lines, of course the last line will be left aligned.');
rcy = VRMethod( "PRT_1", "PrintRight",,,'This last bit of text should finally show all the styles in one cell as it is right aligned.');
/***** write to col 3 *******************************************/
rcy = VRMethod( "PRT_1", "StartCol", 3);
rcy = VRMethod( "PRT_1", "PrintJustified", 'Times New Roman', 8, 'This is some text in the third column. It is not very long,');
/***** print out the row ****************************************/
rcy = VRMethod( "PRT_1", "EndRow");
/***** Terminate the table **************************************/
rcy = VRMethod( "PRT_1", "EndTable");
end
else
rcy = VRMethod( "PRT_1", "PrintLeft", 'Helvetica Bold', 14, 'ERROR - Failed to create the table...');
return
/*:VRX WriteTable2
*/
WriteTable2:
/***** Define the table ********************************/
table.0 = 9
table.1 = tstyle
table.2 = tthick
table.3 = 1
table.4 = thstyle
table.5 = ththick
table.6 = 1
table.7 = 12
table.8 = 'Helvetica Bold'
table.9 = 10
/***** Make 3 columns ***********************************/
/***** Start printing a row *************************************/
rcy = VRMethod( "PRT_1", "StartRow");
/***** write to col 1 *******************************************/
rcy = VRMethod( "PRT_1", "StartCol", 1);
rcy = VRMethod( "PRT_1", "PrintRight", 'Helvetica', 10, 'This is some text in the first column. It is not very long,');
/***** write to col 2 *******************************************/
rcy = VRMethod( "PRT_1", "StartCol", 2);
rcy = VRMethod( "PRT_1", "PrintJustified", 'Helvetica Bold', 10, 'This is some text in the second column. It is not very long,');
rcy = VRMethod( "PRT_1", "PrintJustified",,,'This text has several lines and with a bit of luck should force a new page.');
rcy = VRMethod( "PRT_1", "PrintJustified",,,'If it does then we have a test of a cell rolling over from one page to the next and we will not have to write any more.');
/***** write to col 3 *******************************************/
rcy = VRMethod( "PRT_1", "StartCol", 3);
rcy = VRMethod( "PRT_1", "PrintCentered", 'Helvetica Bold', 14, 'This is some text in the third column. It is not very long,');
/***** print out the row ****************************************/
rcy = VRMethod( "PRT_1", "EndRow");
/***** start the next row ***************************************/
rcy = VRMethod( "PRT_1", "StartRow");
/***** write to col 1 *******************************************/
rcy = VRMethod( "PRT_1", "StartCol", 1);
rcy = VRMethod( "PRT_1", "PrintRight", 'Times New Roman', 10, 'This is some text in the first column. It is not very long,');
/***** write to col 2 *******************************************/
rcy = VRMethod( "PRT_1", "StartCol", 2);
rcy = VRMethod( "PRT_1", "PrintLeft", 'Helvetica Bold', 10, 'This is some text in the second column. It is not very long and should be left justified.');
rcy = VRMethod( "PRT_1", "PrintCentered",,,'This text has several lines and with a bit of luck should be centred.');
rcy = VRMethod( "PRT_1", "PrintJustified",,,'This text here was designed to be justified and should roll over several lines, of course the last line will be left aligned.');
rcy = VRMethod( "PRT_1", "PrintRight",,,'This last bit of text should finally show all the styles in one cell as it is right aligned.');
/***** write to col 3 *******************************************/
rcy = VRMethod( "PRT_1", "StartCol", 3);
rcy = VRMethod( "PRT_1", "PrintJustified", 'Times New Roman', 8, 'This is some text in the third column. It is not very long,');
/***** print out the row ****************************************/
rcy = VRMethod( "PRT_1", "EndRow");
/***** Terminate the table **************************************/
rcy = VRMethod( "PRT_1", "EndTable");
end
else
rcy = VRMethod( "PRT_1", "PrintLeft", 'Helvetica Bold', 14, 'ERROR - Failed to create the table...');