Hi,
I need to have some information that is only visible when printed. The hide when formulas seem to only cater for hiding when printing not the other way round.
The only solution I have found so far is to use another form when printing and disable printing on the original form.
This is causing problems as it disables copying and pasting as well as printing and the users need to be able to do this.
Has anyone got any ideas?
Any help will be gratefully received!
Katherine
Subject: Displaying information only when printed…Is this possible?
Simple. 1. Have a hidden field on the form, With a default value of “Hide” (PrintFag for example)
Hide all text you only want printed and not shown using this PrintFlag=“Hide”
Use a button to print the document. use the formula below
FIELD PrintFlag := “Show”;
@Cammand[FilePrint]);
FIELD PrintFlag := “Hide”;
HTH John
Subject: LS necessary to hide only when not printed
The solution in @formula only works when the document is open in edit mode. But I not every user has edit rights in my situation.
It works in LS, though:
hidden field PrintFlag and hide-when-formulas as proposed by John
print-button:
Sub Click(Source As Button)
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc = workspace.CurrentDocument
’ no need to check read/edit mode
’ no save of backend document → no replication conflicts possible
uidoc.document.PrintFlag = "Show"
Call uidoc.RefreshHideFormulas
Call uidoc.Print
uidoc.document.PrintFlag = "Hide"
Call uidoc.RefreshHideFormulas
End Sub
Subject: Displaying information only when printed…Is this possible?
Hi Katherine,
I have had this problem also and devised the following two solutions:
1-Put the text in headers and/or footers as they are printed but not normally displayed
This one is my favorite 
2-Make the text color the same as the background color on the form and it can’t normally be seen when displayed but will print (even white on white will print black)
HTH,
Bob
Subject: RE: Displaying information only when printed…Is this possible?
Perfect! What cunning solutions, I like it.
Cheers,
Katherine
Subject: unfortunately…
…number 2 is not working anymore with version 7.0.2
What a pity, it would have been such a nice workaround!
Subject: Use a different form when printing (WAS: Displaying information only when printed…Is this possible?)
Subject: Displaying information only when printed…Is this possible?
Probably not using a hide-when formula. The closest you can get is to only show the text when the document is opened for reading or is printed.
This would work if you always opened the document in edit mode, but that may not suit your needs.
You could also create a 2nd form and use that form to print the documents, but you’ll probably have to create some actions for the users to automatically print using the secondary form.