>hi all,
>
>Currently I'm using the following procedure to print text files.
>(1) load text file into a rich-text control (rtf)
>(2) set rtf font name and size
>(3) display printer dialog using ActiveX common control dialog
>(4) flags 0x100 (256) is use to return the hDC property
>(5) user MUST set the landscape/portrait mode for the loaded file
>(6) the file is printed using rtf.SelPrint(hDC)
>
>So far so good, only problem is that I want to programmatically
>set the landscape/portrait mode, paper size, etc without bringing
>up the printer dialog and lets the user select them.
>
>There must be a way to do it in VFP. Any solution or help is much
>appreciated.
>
>Thank you.
>Kockhin
You can get it by SYS(1037) and Getprinter() for printer name...
But I donno the detail information transfer to rtf format!
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.