I am wondering if one is able to enter a field name (ie. @CompanyName and @AccountNo)in the Header box under Document Properties in either the Database as a whole or in the document itself. Ideally I would like to have it entered in the Database so that it would affect all letters and memos. This way it would draw on the 2 field names so that the user would never have to enter anything (it seems to printout whatever is entered as text when I try).
If this is not possible, I would like to use Lotus script as code behind/attached to a print button on the actual document. Not having a lot of experience in this area I have tried the following code to no avail:
Sub Click(Source As Button)
.LeftHeader="&10"("@CompanyName) vbLf + "Acct. #"& ("@AccountNo.")
.RightHeader = "10Page #" & P
I don't know what code would be used for suppressing printing on the first page???
When I activate this sub routine, I get an error message "Variant does not contain an object".
Any help with this would be appreciated.