Good Morning,

Have this code that looks at an array of printers installed on it and if it
finds the "right" printer "sets printer name to".  Prints a report and "set
printer to default".  All is good.....

Yesterday it stopped working,  or at least working intermittently with no
rhyme or reason....

Checked the code,  it is running properly,  executing the set printer name
to (lcPrinter) where lcprinter is the variable where the printer name is
installed when going through the array.

Symptoms are as follows:

1.)  It simply works...
2.)  It doesn't work (code runs,  displays a printer "dialogue",  but goes
to wrong printer!  (typically the default).
3.)  If I "step" through the program,  no problem.
4.)  Eliminated the variable name with a direct reference to the printer in
question,  set printer name to "\\myserver\mydoggoneprinter".  No change.
5.)  Can issue the commands from the command box,  all is good.  It changes
the printer. (I check by doing a ?getprinter())
6.)  Been working fine (printing to the "redirected" printer,   have
recently changed the report layout.  Checked tag and tag2 in the frx and no
printer settings.

Spent about 2 hours last night at the office playing with this.  In
addition,  set printer to,  does nothing.  If I give "set printer name to "
with a bad printer name,  there is an error "accessing the printer spooler.
(assumed to be "normal", because it is a bad printer name)

Has anyone seen this behavior before?. Have heard of issues with set
printer name to,  this is ludicrous.

Can anyone see  something wrong, or suspicious?  Recommend an alternative
way to change the printer?  If I modify a report my current printer
settings get stuffed in tag and tag2,  perhaps run on version for the
desired printer and another for the default?

Regards,
Desmond


--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/CAAJXvaPqngafROKYEjAv6GH95z4SU8XZQ_=xhvqyu39-xqm...@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.

Reply via email to