/***** Start printing a row *************************************/
PrtGStartRow( hPrt);
/***** write to col 1 *******************************************/
PrtGStartCol( hPrt, 1);
PrtGPrintRight( hPrt, "Helvetica", 10, "This is some text in the first column. It is not very long,");
/***** write to col 2 *******************************************/
PrtGStartCol( hPrt, 2);
PrtGPrintJustified( hPrt, "Helvetica Bold", 10, "This is some text in the second column. It is not very long,");
PrtGPrintJustified( hPrt, "", 0, "This text has several lines and with a bit of luck should force a new page.");
PrtGPrintJustified( hPrt, "", 0,"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 *******************************************/
PrtGStartCol( hPrt, 3);
PrtGPrintCentered( hPrt, "Helvetica Bold", 14, "This is some text in the third column. It is not very long,");
/***** print out the row ****************************************/
PrtGEndRow( hPrt);
/***** start the next row ***************************************/
PrtGStartRow( hPrt);
/***** write to col 1 *******************************************/
PrtGStartCol( hPrt, 1);
PrtGPrintRight( hPrt, "CG Times", 10, "This is some text in the first column. It is not very long,");
/***** write to col 2 *******************************************/
PrtGStartCol( hPrt, 2);
PrtGPrintLeft( hPrt, "Helvetica Bold", 10, "This is some text in the second column. It is not very long and should be left justified.");
PrtGPrintCentered( hPrt, "", 0, "This text has several lines and with a bit of luck should be centred.");
PrtGPrintJustified( hPrt, "", 0, "This text here was designed to be justified and should roll over several lines, of course the last line will be left aligned.");
PrtGPrintRight( hPrt, "", 0, "This last bit of text should finally show all the styles in one cell as it is right aligned.");
/***** write to col 3 *******************************************/
PrtGStartCol( hPrt, 3);
PrtGPrintJustified( hPrt, "CG Times", 8, "This is some text in the third column. It is not very long,");
/***** print out the row ****************************************/
PrtGEndRow( hPrt);
/***** Terminate the table **************************************/
PrtGEndTable( hPrt);
} /* end of if */
else
PrtGPrintLeft( hPrt, "Helvetica Bold", 14, "ERROR - Failed to create the table...");