From Mike Gagnon's "Windows scripting guide, For VFP" (refer Faq184-2977) I can set a default printer in VFP by using the following code.
Before I issue those commands, is there a way I can capture the existing windows default printer name, so that later in my code I can reset the default printer back to what it was. ?
Pete Bloomfield
Down Under
Code:
oNet = CREATEOBJECT("WScript.Network")
oNet.SetDefaultPrinter("\\slp_nt_termserv\Panasonic Printer")
Before I issue those commands, is there a way I can capture the existing windows default printer name, so that later in my code I can reset the default printer back to what it was. ?
Pete Bloomfield
Down Under