On 2/5/2011 5:02 PM, [email protected] wrote: > The code that creates the Windows form with the printer button in Win2k, xp > and 2003 is: > Sys(1037) but in Vista and Win7 there is no printer button?? why is that? > supposedly it prevents a bug?
As I said below, GETPRINTER() does this. It displays a picklist of _all_ windows printer names, including pseudo-printers and network printers, and returns the one selected. In one of my apps we put the GETPRINTER() in a configuration screen, so the user can designate which printer is to be used for invoices, statements, mailing lables, etc. Dan Covill > ----- Original Message ----- > From: "Dan Covill"<[email protected]> > To: "ProFox Email List"<[email protected]> > Sent: Friday, February 04, 2011 7:46 PM > Subject: Re: VFP9 SP2 printer api call question > > Easy enough to select a printer in VFP. mPrinterName = GETPRINTER(). > To find out what the current printer is, > mPrinterName = set("Printer",2) default Windows printer > mPrinterName = set("Printer",3) default VFP printer (same?) > > I don't use API calls, but you should be able to feed in the Printer > name ok. > > Dan Covill > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

