Print this
window
// To get the length of a string that is going to the printer use the
// GetTextExtentPoint32 function. It will compute the length and width of the string
// using the selected font size for the printer.
Size sz;
ZeroMemory(&sz, sizeof(SIZE)); // This is for the file description
GetTextExtentPoint32(printDC, Driver->getFile(1), strlen(Driver->getFile(1), &sz);
XPosition[posIndex] = XPosition[posIndex - 1] + sz.cx + colSpace;
if ((XPosition[posIndex - 1] + sz.cx + colSpace) > pageWide)
bPrintOver = true;