Link to home
Start Free TrialLog in
Avatar of jkee54
jkee54Flag for United States of America

asked on

Printing a form in a frameset

In Notes Client
Form is viewed in the NotesView Frame of the Reports frameset.  There is a Print Shared Action button on the Action Bar with the following code:
@SetTargetFrame("NotesView");
@Command([FilePrint])
The target frame of the Shared Action is the NotesView Frame.

Default access is Reader.  Users with Reader access can see the button, but they get the message, not authorized to perform that function.

Why can't they print?  Is it an ACL thing?
Avatar of Bill-Hanson
Bill-Hanson
Flag of United States of America image

I'm not sure what is causing your error, but...

1) FilePrint does not check the ACL.  If the user can see the document, he/she should also be able to print it (unless the form has the "Disable printing/forwarding/copying to clipboard" property enabled).

2) @SetTargetFrame is not valid when used in conjunction with FilePrint.  There are only a few functions that work with @SetTargetFrame.  They are: Compose, EditDocument, OpenFrameset, OpenPage, OpenView, and RefreshFrame.  This will not cause your error -- just thought you should know.
Avatar of jkee54

ASKER

1)Disable printing/forwarding/copying to clipboard" property is not enabled.  On that same security tab of the form, the ability to create documents is restricted to the [admin] role - would the use of roles impact the ability to print?
No, not at all.   Does this happen for 1 user, several users, or all users?
Avatar of jkee54

ASKER

Everyone except my teammates, and we are all Managers. It seems as though it wants the user to be able to open it for editing in order to print, and the default access level is reader.
And this is the only code behind your button?

@SetTargetFrame("NotesView");
@Command([FilePrint])

This should not require anything higher than reader access.

Since the SetTargetFrame is not valid with FilePrint, take it out and see if anything changes.
Avatar of jkee54

ASKER

I took out @SetTargetFrame("NotesView");

and checked with users who have reader access and no roles.  They can't print from the button on the action bar, OR from File-Print on the main menu; that option is greyed out.  Myself and my teammates have an [Admin] role and are managers, and can print.

It's a shared action.
Well you've got me.  I've never seen that behavior before.  Readers can print, trust me.  It's something else.  Do you have any 3rd party add-ins that might be interfering?
Avatar of jkee54

ASKER

I don't think so.  I tested something that proves it's not ACL related but the mystery goes on.  I switched ID to someone who is a reader and was able to print just fine from my PC.  Then I went to the next row to a different user and they still cannot print.  The error they get is "Cannot execute the specified command".  

Then I thought it might be that I have Designer, although I don't know why that would be the case, so I went to a teammate who does NOT have designer and he can print.

The last thing I'll try is to log on to another PC as myself and see what happens!
Good idea.  Also, it wouldn't hurt to compact that user's workspace and clear the replication history if it is a local database.
Avatar of jkee54

ASKER

Well I'm stumped.  Some people can print and some can't.  It's not acl related, it's not form related, it must be PC related.  But these users that can't print the form in this database can print form other databases including their inboxes.  Could there be something in their .ini file?  These same users that can't print from the button also have File - Print greyed out.
Avatar of jkee54

ASKER

I've checked everything I can think of, I'm upping the points as a last effort to get a new idea before I close this with no success :(
ASKER CERTIFIED SOLUTION
Avatar of jkee54
jkee54
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jkee54

ASKER

Partial (actually the original amount) to Bill as he spent the time to point me the right way and to make sure i tried all possibilities.  You experts are great!
Avatar of modus_operandi
modus_operandi

Closed, 500 points refunded.
modus_operandi
EE Moderator