Save your reports in a Notes document

Save reports in Notes.

Create your HTML report and save the result in a Notes document. This tip works both in Notes and Web. In Notes, use UIView event queryOpenDocument with an workspace.OpenUrl method.


In the Notes form, write the code to retrieve data, and write the html-code in a text variable, like this:

'Variable for save html
dim html as string     
   
html=html+"<table  width=100% border=0 cellspacing=1 cellpadding=3>"
'LOOP
do while not doc is nothing
html=html+"<tr style='font-  family:Verdana; font-size=10pt;color:midnightblue;background-color:whitesmoke'>"	
html=html+"<td>"+doc.myTitle(0)
html=html+"<td>"+doc.myValue(0)
...
html=html+"</tr>
html=html+"</table>"
loop

' at the end, save the text variable in
' a rich text item named HTML
' note that the field MUST be named HTML!)

Dim rtitem As NotesRichTextItem
Set rtitem = New NotesRichTextItem(doc, "HTML" )
Call rtitem.AppendText( html )
Call doc.save(True,False) 

Now, reopen the document and the report appears!

This was first published in August 2001

Dig deeper on Domino Resources - Part 5

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchEnterpriseLinux

SearchDataCenter

SearchExchange

SearchContentManagement

Close