James.

You should use an ampersand:

|PRINTER_NAME &vpuse

Nico Hoencamp
AnsvarIdéa verzekeringen, Postbus 90386, 1006 BJ  Amsterdam, telefoon 020 820 
1965 , fax 020 617 00 76 
 

Deze e-mail en alle daarbij meegezonden bijlagen zijn uitsluitend bestemd voor 
de geadresseerde(n). 
Verstrekking aan en gebruik door anderen is niet toegestaan.
AnsvarIdéa sluit iedere aansprakelijkheid uit die voortvloeit uit elektronische 
verzending.

This e-mail and any attachment sent with it are intended exclusively for the 
addressee(s), and may not be passed on to, 
or made available for use by any person other than the addressee(s).
AnsvarIdéa rules out any and every liability resulting from any electronic 
transmission.
 sta even stil bij het milieu voordat u deze email print




-----Oorspronkelijk bericht-----
Van: [email protected] [mailto:[email protected]] Namens Jim Belisle
Verzonden: dinsdag 31 januari 2012 17:10
Aan: RBASE-L Mailing List
Onderwerp: [RBASE-L] - RE: Printers

Dennis,

This code prints anywhere from two to five different reports that must collate 
and it would be a waste of time for them to print to screen for 20 or more 
orders having to choose each time.

Nico, I tried your suggestion but it still uses my default printer. I believe 
the code below is proper. It just dose not want to go past the default printer.

SET VAR vpchoice TEXT = (CVAL('PRINTERS')) CHOOSE vpuse FROM #LIST .vpchoice 
PRINT packinglist WHERE control# = .vcnum + OPTION PRINTER +
|TRAY 2 +
|COLLATION OFF +
|COPIES 1 +
|PRINTER_NAME .vpuse

Javier may be correct about the spaces.
Here is the name of the printer as it shows on my computer.
\\K-FS1\KONICA MINOLTA C351 VXL
(The var vpuse also shows this as the proper name when I choose this printer 
from a list).
So how do I eliminate the spaces but still have the computer see it as a 
printer?

James Belisle
 
Making Information Systems People Friendly Since 1990
 
 
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Nico Hoencamp
Sent: Tuesday, January 31, 2012 9:15 AM
To: RBASE-L Mailing List
Subject: [RBASE-L] - RE: Printers

James,

In R:base 7.5 this is working perfectly for me:

SET VARIABLE vSelectedPrinter TEXT = NULL SET VARIABLE vAanwPrinters TEXT = 
NULL SET VARIABLE vItemcount INTEGER = NULL

SET VARIABLE vAanwPrinters = (CVAL('Printers')) SET VARIABLE vItemcount = 
(ITEMCNT(.vAanwPrinters)) SET VARIABLE vItemcount = (.vItemcount + 1)

CHOOSE vSelectedPrinter FROM #LIST .vAanwPrinters  +
  TITLE 'Selecteer een printer'  +
  CAPTION 'Geïnstalleerde printers' LINES .vItemcount FORMATTED  +
  OPTION TITLE_FONT_SIZE 12 +
  |TITLE_BOLD ON +
  |TITLE_BACK_COLOR MINT GREEN +
  |LIST_FONT_SIZE 10 +
  |WINDOW_BACK_COLOR MINT GREEN

PRINT OffNBpau OPTION PRINTER|SHOW_CANCEL_DIALOG OFF  +
  |PRINTER_NAME &vSelectedPrinter

Nico Hoencamp
AnsvarIdéa verzekeringen, Postbus 90386, 1006 BJ  Amsterdam, telefoon 020 820 
1965 , fax 020 617 00 76 
 

Deze e-mail en alle daarbij meegezonden bijlagen zijn uitsluitend bestemd voor 
de geadresseerde(n). 
Verstrekking aan en gebruik door anderen is niet toegestaan.
AnsvarIdéa sluit iedere aansprakelijkheid uit die voortvloeit uit elektronische 
verzending.

This e-mail and any attachment sent with it are intended exclusively for the 
addressee(s), and may not be passed on to, or made available for use by any 
person other than the addressee(s).
AnsvarIdéa rules out any and every liability resulting from any electronic 
transmission.
P sta even stil bij het milieu voordat u deze email print



-----Oorspronkelijk bericht-----
Van: [email protected] [mailto:[email protected]] Namens Jim Belisle
Verzonden: dinsdag 31 januari 2012 15:52
Aan: RBASE-L Mailing List
Onderwerp: [RBASE-L] - RE: Printers

Javier,

I tried creating a var but that did not work.
If I wanted them to choose a printer I know I can use
(CVAL('PRINTERS')) to bring up the printers available.
How do I get their choice into a variable for the printer chosen?

James Belisle
 
Making Information Systems People Friendly Since 1990
 
 
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Javier Valencia
Sent: Tuesday, January 31, 2012 2:10 AM
To: RBASE-L Mailing List
Subject: [RBASE-L] - RE: Printers

Jim,

I believe the spaces in the printer name might be causing the problem.
Have
you tried placing quotes around the printer name or storing the printer name as 
a variable and using the variable instead of the printer name?

Javier, 

Javier Valencia, PE
O: 913-829-0888
H: 913-397-9605
C: 913-915-3137


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Jim Belisle
Sent: Monday, January 30, 2012 7:44 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Printers

Even though I put the below code to print my report, the report still goes to 
my default printer.

Is there something else I need to do?

 

  PRINT packinglist WHERE control# = .vcnum +

  OPTION PRINTER +

  |TRAY 2 +

  |COLLATION OFF +

  |COPIES 1 +

  |PRINTER_NAME \\k-server\konica minolta c351 pcl

 

James Belisle

 

Making Information Systems People Friendly Since 1990

 

 

 


Reply via email to