Re: VFP9 SP2 printer api call question

Author: <kamcginnis@gmail.com>

Posted: 2011-02-05 at 17:38:00

code to select the printer:

lcprinter = Getprinter()

----- Original Message -----

From: "Dan Covill" <dcovill@san.rr.com>

To: "ProFox Email List" <profox@leafe.com>

Sent: Friday, February 04, 2011 7:46 PM

Subject: Re: VFP9 SP2 printer api call question

On 2/4/2011 4:02 PM, kamcginnis@gmail.com 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: ProFox@leafe.com

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/0fbc01cbc585$5911c490$7a00a8c0@w2k3s02

** 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.

©2011 <kamcginnis@gmail.com>