Solved

Headers .....using field names

Posted on 2000-02-21
3
159 Views
Last Modified: 2013-12-18
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)
  With ActiveSheet.PageSetup
     .LeftHeader="&10"("@CompanyName)          vbLf + "Acct. #"& ("@AccountNo.")
     .RightHeader = "10Page #" & P
     .Orientation=xlPortrait
     .LeftMargin=Application.InchesToPoi        nts(0.5)
     .RightMargin=Application.InchesToPo        ints(0.5)
     .TopMargin=Application.InchesToPoi        nts(1.25)
     .BottomMargin=Application.InchesToP       oints(1.0)
     .HeaderMargin=Application.InchesToP        oints(0.75)
     .FooterMargin=Application.InchesToP        oints(0.5)
      Print ActiveSheet
   End With
End Sub

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.

Gary
   
0
Comment
Question by:cooper_g_d
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
fredriknorling earned 100 total points
ID: 2546122
You can´t enter any field in the print box and that can not be accessed tru Lotus Script neither. I think that the only thing you can access that object with is with C api.

The error message you´ll get is because there is no object called activesheet in notes.

/Fredrik
0
 

Author Comment

by:cooper_g_d
ID: 2548756
I just can't believe that one cannot create a Lotus Script for creating a header??? There must be some alternatives.  I would like to receive other opinions.....what is  "C api "?

0
 

Author Comment

by:cooper_g_d
ID: 2548761
I just can't believe that one cannot create a Lotus Script for creating a header??? There must be some alternatives.  I would like to receive other opinions.....what is  "C api "?

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Encrypted Mail message in a NSF 10 29
authenticating IIS users via a Lotus Domino Server 5 175
Bulk lotus notes account creation 3 74
IBM Domino web server 5 62
This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now