>I can now print the html page from foxpro
>but it can't print to the printer that i select using set printer to name <...>
>
>I have also try to using a command line utility to select change default windows printer first before print but it seem not work.
>
>How can I print the html to selected printer from foxpro
Try to change default windows printer using WSH
lcSaveWinDefPrinter = SET("PRINTER", 2)
loNet = CREATEOBJECT("WScript.Network")
loNet.SetDefaultPrinter("\\Server\Print1")
...
loNet.SetDefaultPrinter(lcSaveWinDefPrinter)
If it doesn't work, take a look at Message #
385065.
--sb--