Can you post RTF printig code?
>Yes it returns 1.
>
>Simon
>
>
>>Did you check what Sys(1037,3) returns?
>>
>>>
>>>I am using an ActiveX control to print RTF files. Since this will be used in an automated environment I need to be able to configure the printer settings without user intervention. So after reading articles about the WinAPI and articles by other VFP programmers such as Barbara Peisch I began testing the following code. The print parameters are contained in object (oPrintParam) which is attached to my main application object (goApp). So I wrote a program to convert the parameters into a Printer DevMode Structure which I then write to the printer using Sys(1037).
>>
>><snip>
--sb--