Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

printerSetCurrent()

Status
Not open for further replies.

lencarne

Programmer
Feb 1, 2003
11
0
0
GB
This works

printerSetCurrent("Panasonic KX-P1150,Panasonic KX-P1150,LPT1:")

This doesn't

printerSetCurrent(printvar)

If the enduser wants to change printers we need the latter option. Any work around folks??

Greetings from England

Len Carne
 
What did you set 'printvar' to? Is it a string variable? Did you include the port assignment in the variable string?

Mac :)

"Do not delve too deeply in the arts of your enemy and so become ensnared by them"

langley_mckelvy@cd4.co.harris.tx.us
 
Here is the code I use to let them choose a printer with a popup menu.

var
pmMenu PopupMenu
arPrnNames, arPrinters array[] String
endvar


enumPrinters(arPrinters)
pmMenu.addArray(arPrinters)

str = pmMenu.show()

if str <> &quot;&quot; then
printerSetCurrent(str)
endIf

Hope this helps
Jeremy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top