textLeft = 61000;     // Coordinata X del testo
textTop = 101300;   // Coordinata Y del testo
strcpy (textTesto, "Prova riga 1");
fontPoints = 20; // Altezza del carattere: si trova sul file lst in points
OldTextColor = SetTextColor (hdcPrint,  clrBlack); // Colore testo:: si trova sul file lst
 if (OldTextColor == CLR_INVALID)
    stat_code = GetLastError();
    fontPixels = -(fontPoints * MM_1000_INCH) / 72; // 
    hFont = CreateFont (fontPixels, 0, 0, 0, FALSE, FALSE, FALSE, FALSE, ANSI_CHARSET, OUT_DEFAULT_PRECIS,
                        CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH | FF_SWISS, TEXT("Times New Roman"));
 
if (hFont == NULL)
        stat_code = GetLastError();
    else
    {
        OldFont = (HFONT)SelectObject (hdcPrint, hFont);
        if (OldFont == NULL)
            stat_code = GetLastError(); // Forse l'errore non si trova così ...
        esito = TextOutA (hdcPrint, textLeft, textTop, textTesto, strlen(textTesto));
        strcpy (textTesto, "Prova riga 2");
        fontPoints = 12;
        fontPixels = -(fontPoints * MM_1000_INCH) / 72;
        hFont = CreateFont (fontPixels, 0, 0, 0, FALSE, FALSE, FALSE, FALSE, ANSI_CHARSET, OUT_DEFAULT_PRECIS,
                    CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH | FF_ROMAN, TEXT("Arial"));
        OldFont = (HFONT)SelectObject (hdcPrint, hFont);
        if (OldFont == NULL)
            stat_code = GetLastError(); 
        else
        esito = TextOutA (hdcPrint, textLeft, ??, textTesto, strlen(textTesto));