Hi all !
Here is my problem. I try to print out different fonts on a document by using API calls (CreateFontA, SelectObject). To do this, I first assign PRINTER-NAME attribute of the SESSION system handle to what I entered in the screen. Then, I use OUTPUT TO PRINTER and do my displays. Everything goes well. The problem is to print with landscape orientation. I don't want to have to use SYSTEM-DIALOG PRINTER-SETUP statement because all informations are entered at screen before the user press a button. As soon as I use OUTPUT TO PRINTER LANDSCAPE, I lose all my print format and it prints always with the same font. Thank you to all of you who reply.
Here is my problem. I try to print out different fonts on a document by using API calls (CreateFontA, SelectObject). To do this, I first assign PRINTER-NAME attribute of the SESSION system handle to what I entered in the screen. Then, I use OUTPUT TO PRINTER and do my displays. Everything goes well. The problem is to print with landscape orientation. I don't want to have to use SYSTEM-DIALOG PRINTER-SETUP statement because all informations are entered at screen before the user press a button. As soon as I use OUTPUT TO PRINTER LANDSCAPE, I lose all my print format and it prints always with the same font. Thank you to all of you who reply.