[ol][li]In your main program declare the required API (If their are not already declared). These API will allow you to get the numeric handle of your printer, which is a required parameter for the SelPrint function.
[li]Next, select the printer to send the data to. In the click event of a command button on your form, put:
Code:
Local lcPrinter
lcPrinter = GETPRINTER()
nHDC = CreateDC(0,lcPrinter,0,0) && Get the printer handle
thisform.RTFControl1.SelPrint(nHDC)
=DeleteDC(nHDC)
[/li][/ol]
This code was adapted from an example from Ed Raugh
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.