This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


Jul 14, 2014, 11:42 AM
2 Posts

Programatically set print/page margins in IBM Notes

  • Category: Application Development
  • Platform: Windows
  • Release: 9.0.1
  • Role: Developer
  • Tags: page settings,print settings,page margins,print margins,lotusscript,c api
  • Replies: 2

I would like to set page margins (esp. bottom margin) in IBM Notes/Lotus Notes programatically.

When printing documents with a special form, the bottom margin must be lowered to have the complete form on one page.

You can set the page setup setting, e.g. print margins, for a complete Notes application using the File\Page Setup... in the menu manually. As far as I could discover, this settings are stored in the local client's bookmark.nsf.

These settings don't replicate.

They get lost, when you delete the workspace icon and re-add it to your workspace later.

I haven't found any LotusScript, formula language nor Java command to set page margins for a document, form or application/database.

Even in the C api there seem to be no function to change print/page margins or change page setup settings.

I would like to have a procedure to change the print margins - or at least a way to set or change these settings in a document, form or application by manipulating items in a document or design element.

Jul 18, 2014, 12:48 AM
6 Posts
I also met this problem

I have searched this question on many web sites, but still couldn't found the way to solve this problem, No one can solve this problem, IBM?

Jul 25, 2014, 11:53 AM
28 Posts
It has been a wishlist item for 20 years, or so.
Back in the Notes 3.0a days when I first became Notes Developer + more, this has been an item we wished for.
The problem is, as I understand from the IBM-side, is that even Notes are Document Centric its not Printer Centric !

Meaning, every user may have different (potentially every one) default printer - and the rendering of a Notes Form (ie. Document ) appears differently when doing Print (and Print preview).
The setting are stored in the 'icon' bookmark (or workspace) so if one could just programmatically ask:
Is the Printer Setup made ?
then you could invite the user for this native @command:
@Command( [FilePageSetup] )

after a nice prompt, inviting to the settings.

I imagine the 'wonderful' world of eClipse, Java Plugins etc, could do the trick, but I haven't got to this steep learning curve yet !


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal