Does the Common Dialog printer screen work for you? I've only got XP, no Vista or 7 system to see.
Fred On Sat, Feb 5, 2011 at 6: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? > > I found one solution here: > > http://blog.moxiedata.com/PermaLink,guid,ba1f3061-a387-4faf-81a5-2cf8d6f520ab.aspx > it did not work on XP > My test on a Win7 laptop did not work either but it does not have a 'real' > printer defined. > > > Barbara Peisch posted a work-around using the DocumentProperties() > > http://www.foxite.com/archives/sys1037-not-having-printers-button-0000158197.htm > these references are related to using the new report writer. That is nice, > but we need to print a plain text file also > without using the new report writer. > > > ----- 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 > > > On 2/4/2011 4:02 PM, [email protected] wrote: > > I hope I can explain this so it makes sense. > > > > I have a wrapper for Windows printer API calls > > > > 1 will select a printer. > > > > 2 will allow you to change settings like the paper cartridge. On Win2k, > xp and 2003, this screen also has a button to > > change the printer that is missing on Vista and Win7. Why did they do > that?? > > > > This means clients with Vista and Win7 must select the printer before > going to the screen to change the settings. I > > don't do this often enough to be aware of the difference (or care), but > we just got the 20th (my guess) user complaint > > calling to ask what happened and they want me to put the printer > selection back. > > > > I used to do things like that 30 years ago when I programmed in > assembler, but that is water under the bridge for me > > and I am not going back there. > > > > Anyone know of any other printer api call documentation somewhere that I > can experiment with? > > 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.

