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?
_______________________________________________
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/0f0d01cbc4c8$06fc9170$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.
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
_______________________________________________
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/4D4CC7FC.1070903@san.rr.com
** 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.
Author: <kamcginnis@gmail.com>
Posted: 2011-02-05 17:38:00 Link
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.
Author: <kamcginnis@gmail.com>
Posted: 2011-02-05 20:02:30 Link
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" <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/0fd201cbc599$88b40b40$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.
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, <kamcginnis@gmail.com> 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" <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/AANLkTim5-GFpWfEVHLsUQ3hg7Xm1bs7tCRT5Jnv7eEKT@mail.gmail.com
** 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.
That Moxiedata solution threw up a print dialog with printer button on
my Win 7 64-bit laptop. Why not check what os() returns, and use the old
style if XP and the Moxie Data solution if Vista/7 ?
On Sat, 05 Feb 2011 17:02 -0800, kamcginnis@gmail.com 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" <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/1297016962.16582.1419236029@webmail.messagingengine.com
** 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.
On 2/5/2011 5:02 PM, kamcginnis@gmail.com 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"<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
>
> 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/4D4EEB50.9010907@san.rr.com
** 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.
Author: <kamcginnis@gmail.com>
Posted: 2011-02-07 18:43:38 Link
I am using os() and I did cause Vista and Win7 to use the moxie data solution.
I only get the CANCEL result.
Do you have a real printer defined on your laptop? did you add anything at all to the code?
----- Original Message -----
From: "Alan Bourke" <alanpbourke@fastmail.fm>
To: <profox@leafe.com>
Sent: Sunday, February 06, 2011 10:29 AM
Subject: Re: Fw: VFP9 SP2 printer api call question
That Moxiedata solution threw up a print dialog with printer button on
my Win 7 64-bit laptop. Why not check what os() returns, and use the old
style if XP and the Moxie Data solution if Vista/7 ?
On Sat, 05 Feb 2011 17:02 -0800, kamcginnis@gmail.com 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" <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/10f301cbc720$d9293b30$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.
On Mon, 07 Feb 2011 15:43 -0800, kamcginnis@gmail.com wrote:
>
>
>
> Do you have a real printer defined on your laptop? did you add anything
> at all to the code?
>
I have several real printers, I didn't touch the code. I was running VFP
as an administrator.
--
Alan Bourke
alanpbourke (at) fastmail (dot) fm
_______________________________________________
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/1297150958.21275.1419519435@webmail.messagingengine.com
** 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.