/***** Start printing a row *************************************/
rcy = PrtGRxStartRow( prt);
/***** write to col 1 *******************************************/
rcy = PrtGRxStartCol( prt, 1);
rcy = PrtGRxPrintRight( prt, 'Helvetica', 10, 'This is some text in the first column. It is not very long,');
/***** write to col 2 *******************************************/
rcy = PrtGRxStartCol( prt, 2);
rcy = PrtGRxPrintJustified( prt, 'Helvetica Bold', 10, 'This is some text in the second column. It is not very long,');
rcy = PrtGRxPrintJustified( prt,,,'This text has several lines and with a bit of luck should force a new page.');
rcy = PrtGRxPrintJustified( prt,,,'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 = PrtGRxStartCol( prt, 3);
rcy = PrtGRxPrintCentered( prt, 'Helvetica Bold', 14, 'This is some text in the third column. It is not very long,');
/***** print out the row ****************************************/
rcy = PrtGRxEndRow( prt);
/***** start the next row ***************************************/
rcy = PrtGRxStartRow( prt);
/***** write to col 1 *******************************************/
rcy = PrtGRxStartCol( prt, 1);
rcy = PrtGRxPrintRight( prt, 'Times New Roman', 10, 'This is some text in the first column. It is not very long,');
/***** write to col 2 *******************************************/
rcy = PrtGRxStartCol( prt, 2);
rcy = PrtGRxPrintLeft( prt, 'Helvetica Bold', 10, 'This is some text in the second column. It is not very long and should be left justified.');
rcy = PrtGRxPrintCentered( prt,,,'This text has several lines and with a bit of luck should be centred.');
rcy = PrtGRxPrintJustified( prt,,,'This text here was designed to be justified and should roll over several lines, of course the last line will be left aligned.');
rcy = PrtGRxPrintRight( prt,,,'This last bit of text should finally show all the styles in one cell as it is right aligned.');
/***** write to col 3 *******************************************/
rcy = PrtGRxStartCol( prt, 3);
rcy = PrtGRxPrintJustified( prt, 'Times New Roman', 8, 'This is some text in the third column. It is not very long,');
/***** print out the row ****************************************/
rcy = PrtGRxEndRow( prt);
/***** Terminate the table **************************************/
rcy = PrtGRxEndTable( prt);
end
else
rcy = PrtGRxPrintLeft( prt, '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 ***********************************/
Cols.0.0 = 3
Cols.1.1 = 25
Cols.1.2 = 'Index'
Cols.2.1 = 50
Cols.2.2 = '$cImage'
Cols.3.1 = 70
Cols.3.2 = '$rRes Number'
names.0 = 18
names.1 = 'BLUJEAN.BMP'
names.2 = 'BOX.BMP'
names.3 = 'BRICK.BMP'
names.4 = 'BUTTERFL.BMP'
names.5 = 'COLUMNS.BMP'
names.6 = 'DELFT.BMP'
names.7 = 'FERNS.BMP'
names.8 = 'FLAMINGO.BMP'
names.9 = 'FLEUR.BMP'
names.10 = 'LEAVES.BMP'
names.11 = 'MAZE.BMP'
names.12 = 'ORCHIDS.BMP'
names.13 = 'OS2TILE.BMP'
names.14 = 'SHELLS.BMP'
names.15 = 'SUNFLOW.BMP'
names.16 = 'SWIRLS.BMP'
names.17 = 'TIEDYE.BMP'
names.18 = 'ZIGZAG.BMP'
rcy = PrtGRxDefineTable( prt, "table.", "Cols.");
/**** Start printing in the table **********************************/
/***** Start printing a row *************************************/
rcy = PrtGRxStartRow( prt);
/***** write to col 1 *******************************************/
rcy = PrtGRxStartCol( prt, 1);
rcy = PrtGRxPrintRight( prt, 'Helvetica', 10, 'This is some text in the first column. It is not very long,');
/***** write to col 2 *******************************************/
rcy = PrtGRxStartCol( prt, 2);
rcy = PrtGRxPrintJustified( prt, 'Helvetica Bold', 10, 'This is some text in the second column. It is not very long,');
rcy = PrtGRxPrintJustified( prt,,,'This text has several lines and with a bit of luck should force a new page.');
rcy = PrtGRxPrintJustified( prt,,,'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 = PrtGRxStartCol( prt, 3);
rcy = PrtGRxPrintCentered( prt, 'Helvetica Bold', 14, 'This is some text in the third column. It is not very long,');
/***** print out the row ****************************************/
rcy = PrtGRxEndRow( prt);
rcy = PrtGRxNewPage( prt);
/***** start the next row ***************************************/
rcy = PrtGRxStartRow( prt);
/***** write to col 1 *******************************************/
rcy = PrtGRxStartCol( prt, 1);
rcy = PrtGRxPrintRight( prt, 'Times New Roman', 10, 'This is some text in the first column. It is not very long,');
/***** write to col 2 *******************************************/
rcy = PrtGRxStartCol( prt, 2);
rcy = PrtGRxPrintLeft( prt, 'Helvetica Bold', 10, 'This is some text in the second column. It is not very long and should be left justified.');
rcy = PrtGRxPrintCentered( prt,,,'This text has several lines and with a bit of luck should be centred.');
rcy = PrtGRxPrintJustified( prt,,,'This text here was designed to be justified and should roll over several lines, of course the last line will be left aligned.');
rcy = PrtGRxPrintRight( prt,,,'This last bit of text should finally show all the styles in one cell as it is right aligned.');
/***** write to col 3 *******************************************/
rcy = PrtGRxStartCol( prt, 3);
rcy = PrtGRxPrintJustified( prt, 'Times New Roman', 8, 'This is some text in the third column. It is not very long,');
/***** print out the row ****************************************/
rcy = PrtGRxEndRow( prt);
/***** Terminate the table **************************************/
rcy = PrtGRxEndTable( prt);
end
else
rcy = PrtGRxPrintLeft( prt, 'Helvetica Bold', 14, 'ERROR - Failed to create the table...');