Previous Thread
Next Thread
Print Thread
Preview Preferences - Setting Preview on Print #1167 18 Feb 16 08:04 AM
Joined: Sep 2003
Posts: 4,158
Steve - Caliq Offline OP
Member
OP Offline
Member
Joined: Sep 2003
Posts: 4,158
Now sometime ago im sure I saw there was a call of some type to set the ATE "Preview Preferences" to Always, Never etc... and also the OnExit...
But sure cant find it!?
(Well until the usual thing happens I hit the BBS Post button here and it turn up at the top of manual on my next search...)

Re: Preview Preferences - Setting Preview on Print #1168 18 Feb 16 08:32 AM
Joined: Sep 2003
Posts: 4,158
Steve - Caliq Offline OP
Member
OP Offline
Member
Joined: Sep 2003
Posts: 4,158
Maybe I can set this temporary in XCALL SPOOL?
http://www.microsabio.net/dist/doc/conref/00ashref.htm#!initfilecommands.htm
Im guessing the /PREVIEW is the old EZ preview.

I Only have on instant where I like a GDI document previewed before they decide to press print or exit, so its a temporary setting.

Re: Preview Preferences - Setting Preview on Print #1169 18 Feb 16 10:33 AM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
What you want is to set the SPSW_APEX and SPSW_PREVIEW switches in XCALL SPOOL .

PREVIEW by itself tries to decide between the old EZ preview and the new APEX preview based on various factors, but adding the SPSW_APEX switch should make sure that it chooses that route.

You can also test this with the PRINT.LIT /PREVIEW switch, which favors APEX if available.

Re: Preview Preferences - Setting Preview on Print #1170 18 Feb 16 11:58 AM
Joined: Sep 2003
Posts: 4,158
Steve - Caliq Offline OP
Member
OP Offline
Member
Joined: Sep 2003
Posts: 4,158
I did add SPSW_APEX to Xcall spool and that made spool decide to no nothing, I will try it again tomorrow, is it all client side or partly server related as we still using that old AIX version in house.
SPSW_Preview did as you said displayed it in the old ez preview.

Re: Preview Preferences - Setting Preview on Print #1171 18 Feb 16 12:40 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
Hmmm... It's partly server side (the decision whether to use the old EZ preview, which is totally server side, vs. APEX). And partly client-side (the decision whether to override the preferences and force the preview.

Note that in order for the APEX preview to even be an option, you have to be printing to the AUXLOC: device. If you print to some non-existent printer on the server side, you may get no message (but check the OPR:SPOOL.LOG file for evidence).

There have been some changes in this area, so it might help to know exactly the server-side version.

As for logging, I would set the TRACE LP on both sides, and also perhaps the ATE trace on the client side, which together should give us enough clues to track down what is happening.

Re: Preview Preferences - Setting Preview on Print #1172 18 Feb 16 02:17 PM
Joined: Sep 2003
Posts: 4,158
Steve - Caliq Offline OP
Member
OP Offline
Member
Joined: Sep 2003
Posts: 4,158
Thanks for the tips, plenty for me to try... smile

Re: Preview Preferences - Setting Preview on Print #1173 23 Feb 16 01:58 AM
Joined: Sep 2003
Posts: 4,158
Steve - Caliq Offline OP
Member
OP Offline
Member
Joined: Sep 2003
Posts: 4,158
After a few tweaks the following basic test worked:
Code
  
XCALL SPOOL,FILNAM,"LPT98",SPSW_NOPASSTHROUGH+SPSW_PREVIEW+SPSW_APEX,1,"",0,0,"","","",""

LPT98.INI
DEVICE = AUXLOC:PROMPT:+GDI
(I think the original issue it not pointing to a AUXLOC: printer)

Thanks.

Re: Preview Preferences - Setting Preview on Print #1174 23 Feb 16 02:13 AM
Joined: Sep 2003
Posts: 4,158
Steve - Caliq Offline OP
Member
OP Offline
Member
Joined: Sep 2003
Posts: 4,158
Question: I guess the above does not work and ignored if the user has the Print Preferences -> Preview on Print -> set to NEVER ?

Re: Preview Preferences - Setting Preview on Print #1175 23 Feb 16 10:05 AM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
That's correct: the ALWAYS and NEVER options override the application. To allow application control (via the SPOOL switches), the Preview Preferences need to be set to one of the two "Application Control" options:

[Linked Image]

The application could, however, actually change the Preview Preferences settings using MX_REGISTRY commands (forwarded to ATE via AG_XFUNCS ).

There is a pair of handy SOSLIB utilities, GETATEREG.LILT and SETATEREG.LILT that can make this easy. (The setting in question is "PVlaunchOption") ...

Code
.GETATEREG PVlaunchOption
Retrieving registry value PVlaunchOption
Current value: 2

.SETATEREG PVlaunchOption=1
Setting registry value PVlaunchOption to 1

.GETATEREG PVlaunchOption
Retrieving registry value PVlaunchOption
Current value: 1
Offhand I don't remember what the 4 option values equate to, but you can easily check this out by just looking at the Settings > Preview Preferences dialog after getting or setting the value.

Note that GETATEREG and SETATEREG require ATEAPX.SBX and ATEREG.SBX (also from the SOSLIB [907,33] directory), although you can download the compiled versions from the 6.2 Release DSK0 update directories .

Re: Preview Preferences - Setting Preview on Print #1176 23 Feb 16 01:54 PM
Joined: Sep 2003
Posts: 4,158
Steve - Caliq Offline OP
Member
OP Offline
Member
Joined: Sep 2003
Posts: 4,158
Ok that explain one issue I had testing, good to know..
I'll check/change the print preview app setting just beforehand, thanks for the example and tips. smile


Moderated by  Jack McGregor, Ty Griffin 

Powered by UBB.threads™ PHP Forum Software 7.7.3