Previous Thread
Next Thread
Print Thread
APEX print folder error #1142 23 Jul 15 04:49 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline OP
Member
OP Offline
Member
J
Joined: Jun 2001
Posts: 11,794
Periodically someone reports a variation of this problem: printing generates an error saying something about the APEX folder not existing or access denied. Specific messages may include:

Unable to create AUXLOC file directory
Access is denied (\\server\...\...\APEX)
The specified path is invalid (xxxx\APEX)
The system cannot find the path specified (xxxx\APEX)

Or maybe you don't get an error, but you have a problem with the location of the directory.

Although the subject has been covered in various ways before (see
APEX Folder Problem ,
ATE/APEX Print Folder ),
since I just got TWO queries about it in the last half hour (both relating to Citrix), I thought maybe another refresh of the topic might be warranted.

As noted in one of the above articles, the basic issue is this: A-Shell/Windows printing needs to create a temporary copy of the print file in a special directory, which APEX also uses for archiving reports. The directory name is APEX and is normally in the My Documents folder (where it will be created if it doesn't exist, assuming the parent directory is writable). The [b]My Documents[\b] directory is defined in the Registry setting:

HKCU,"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders\Personal

Because we sometimes run into sites where this folder doesn't exist, or isn't writable by the user, or you just don't like that folder, we offer a workaround: you can define the environment variable APEX to point to any directory. If the variable is defined, it will be used instead of the default directory. You can do this on the fly from your application using the AG_SETENV function. (One of the two threads mentioned above covers this in a bit more detail.)

So to review some of the variations of the problem and the suggested solution:

1) Problem: You simply don't like the default folder. Solution: Use AG_SETENV to point APEX to another folder that you do like and this is writable.

2) Problem: For unknown reasons, the folder cannot be located or isn't accessible. Solution: use AG_SETENV to point APEX to another folder that you do like and that is writable.

3) Problem: In a Citrix/RDP environment, for some reason the folder isn't writeable, or you want all the users to share the same APEX directory. Solution: Use AG_SETENV to point APEX to another folder that you do like and that is writable.

4) Problem: You have a different problem that isn't covered above. Solution: Explain the problem here, providing enough details so we can figure out what is really happening and then devise a solution.

5) Problem: You have one of the above problems, but don't like the proposed solution. Solution: Propose another solution and we can discuss it here.

Re: APEX print folder error #1143 23 Jul 15 10:09 PM
Joined: Sep 2002
Posts: 5,471
F
Frank Online Content
Member
Online Content
Member
F
Joined: Sep 2002
Posts: 5,471
Thanks for the writeup. Any of those solutions is more than acceptable. Isn't there a way to drop the AG_SETENV command into a dot prompt? I can't recall the lit to prepend the command to allow some items to be set from the dot. If not i can add it to the source code, otherwise i was thinking to just add it to this customer startup.cmd file.

Thanks

Re: APEX print folder error #1144 23 Jul 15 10:24 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline OP
Member
OP Offline
Member
J
Joined: Jun 2001
Posts: 11,794
You can use AGCMD.LIT

For example:

[code[
.AGCMD SETENV APEX=C:\TEMP

.AGCMD GETENV APEX
Response = C:\TEMP
[/code]

Re: APEX print folder error #1145 24 Jul 15 08:35 AM
Joined: Sep 2002
Posts: 5,471
F
Frank Online Content
Member
Online Content
Member
F
Joined: Sep 2002
Posts: 5,471
Thanks Jack.

Re: APEX print folder error #1146 24 Jul 15 12:19 PM
Joined: Nov 2007
Posts: 53
R
René Villar Online Content
Member
Online Content
Member
R
Joined: Nov 2007
Posts: 53
Thank you, Jack.

I'll make some test with a different directory with all the permissions granted.

I'll let you know.

Best regards.


René.

Moderated by  Jack McGregor, Ty Griffin 

Powered by UBB.threads™ PHP Forum Software 7.7.3