Solved

While opening a doc distiction between a preview and a normal open in Lotus script

Posted on 2003-11-26
2
212 Views
Last Modified: 2013-12-18
Hi,
I want to put some code in the postopen event of a document but I have to execute different code depending on if the document is being opened by previewing or the normal way. Do you know, in Lotus Script, how to get the way that the current doc is opened?

Thanks,
Koray.
0
Comment
Question by:koray_uygun
2 Comments
 
LVL 13

Accepted Solution

by:
CRAK earned 50 total points
ID: 9824112
In PostOpen, you already have the NotesUIDocument (as "Source") available.
NotesUIDocument has a property InPreviewpane (True/False). So:

If Source.InPreviewFrame then
   ' put your code to execute in preview here
Else
   ' put your code to execute in normal mode here
End if
0
 

Author Comment

by:koray_uygun
ID: 9824160
Thank you very much
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

743 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

12 Experts available now in Live!

Get 1:1 Help Now