How do I override default print settings using LotusScript or Formula language?
In Formula language, use @command([FilePrint]); and @Command([FilP:rintSettings]);. These commands may not do everything you want, but they can be very useful. Look in the Domino Designer Help Index under "filePrint" for details.
LotusScript offers the "Print" method of the NotesUIDocument and NotesUIView classes. The former is pretty basic; the latter has a number of options.
None of these provides the flexibility or control that we have all been requesting for years, but there are other options. For one thing, remember that you can print from a Lotus Notes view using an alternate form, although maintaining such a form can be a pain.
Also, if you are adept at XML and XSLT transformations, you can do amazing things by dumping data to XML and reformatting it via XSLT. For this, you will need the DXLexporter class that is new in Domino R6, or available in Domino R5 using the Lotus XML Toolkit.
Do you have comments on this Ask the Expert Q&A? Let us know.
Dig Deeper on LotusScript
Related Q&A from Cregg Hardwick
A user wants to know if it's possible for LotusScript to read an attachment in a Notes document without first detaching it. Find out our expert's ... Continue Reading
Learn about different options using LotusScript code and Formula language to customize the principal field of outgoing Lotus Notes email messages. Continue Reading
Read about merging cells in a Microsoft Word table using LotusScript and an Excel example, along with the thought process that goes along with it. Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.