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: ProFox@leafe.com
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-XQmZsQ@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.
There is a check on the report properties to save printer environment. Maybe
that's on and should not be.
Al
-----Original Message-----
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.
_______________________________________________
Post Messages to: ProFox@leafe.com
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/001c01cf45ea$324e2680$96ea7380$@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.
Hi Desmond:
I remember having this problem in the past. As I recall, what I did was create a small program to open up the report files as a table, then erased the information about the printer. The application was then built as normal. I am away from my development computer at the moment, but I'd be happy to share the little program with you.
Jon
On March 22, 2014 10:54:16 AM CDT, Desmond Lloyd <desmond.lloyd@gmail.com> wrote:
>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
>---
>
[excessive quoting removed by server]
_______________________________________________
Post Messages to: ProFox@leafe.com
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/c9d74270-8328-4fbc-9814-e54668256348@email.android.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.
Thanks to all that responded.... Pesky little set printer name to, Turns
out that I had left a space in tag and tag2, removed the space and it
started working fine! At least that's what it did... Amazing, or perhaps
I am still confused.....
Regards,
Desmond
On 22 March 2014 15:57, Jon Westcot <jon@westcot.net> wrote:
> Hi Desmond:
>
> I remember having this problem in the past. As I recall, what I did was
> create a small program to open up the report files as a table, then erased
> the information about the printer. The application was then built as
> normal. I am away from my development computer at the moment, but I'd be
> happy to share the little program with you.
>
> Jon
>
>
> On March 22, 2014 10:54:16 AM CDT, Desmond Lloyd <desmond.lloyd@gmail.com>
> wrote:
> >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
> >---
> >
[excessive quoting removed by server]
_______________________________________________
Post Messages to: ProFox@leafe.com
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/CAAJXvaPCBXqT0rCxY4usp-OPigfcyd2uMZcaUg6=NFMd-u3JsA@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.