IBM®
Skip to main content
    Country/region select      Terms of use
 
 
   
     Home      Products      Services & solutions      Support & downloads      My account     

developerWorks  >  Lotus  >  Forums & community  >  Best Practice Makes Perfect

Best Practice Makes Perfect

A collaboration with Domino developers about how to do it and how to get it right in Domino

A tip for people generating rich-text reports on the fly and displaying them without first saving the report document....

This is fine, but you may find that your report is missing whatever bit of text you added last. When you save or mail a document, any pending changes are saved into the rich text item, but if you just use NotesUIWorkspace.EditDocument, you first must call NotesRichTextItem.Update, which flushes pending output to the rich text item.


        Do Until doc Is Nothing
...
                reportBody.AddNewline(2)
                Set doc = documentCollection.GetNextDocument(doc)
       Loop

       Call reportBody.Update()

        Call ws.EditDocument(False, docReport)

Andre Guirard | 16 April 2009 06:00:00 AM ET | Home, Plymouth, MN, USA | Comments (1)


 Comments

1) Neat!
Monisha Menon | 6/5/2009 5:42:31 AM

Neat ! Simple code to achieve a RTF report.

Although one cant use this to create rich content like sections/buttons/hotspots etc.

 Add a Comment
Subject:
   
Name:
Comment:  (No HTML - Links will be converted if prefixed http://)
 
Remember Me?     Cancel

Search this blog 

Disclaimer 

    About IBM Privacy Contact