Ali
If you're working in VFP, why do you try to send the stuff to the printer in low-level instead of just using a Report?
In the report designer, you can use any font you like. If the problem is just using the printer located in the LPT1 port, you can do SET PRINTER TO LPT1 .
HTH
Jaime
>I want to print adress label to DOS printer by useing smaller font than default one.
>For this reason, I haved used following code block. But I havent got my desired output
>
>What is wrong in this code block. Can you help me
>
>Thanks
>
>
>
>*** DOS PRINT CODE BLOCK
>
>SET PRINTER FONT Arial, 15
>
>cWhereDosPrinter = alltrim("LPT1:")
>
>nFhandle = fcreate(cWhereDosPrinter)
>
>
>SELECT Customer
>SCAN
> cAdressLabel = Customer.name+CHR(10)+CHR(13)+Customer.adress
> =FPUTS(nFHandle, cAdressLabel)
>ENDSCAN
>
>
Why do programs stop working correctly as soon as you leave the Fox?