LotusScript to C API Programming Guide

rtLib Domino Rich Text Management template
Home
Show details for ContentContent
Purchase
Ready-to-use samples
Show details for Online resourcesOnline resources
Forum
Links
Happy readers

Anonymous

login


 

Hosted by Prominic.NET, Inc.
Main topic: Richtext and the api?

Richtext and the api? (by Hannes Bronkhorst, 03/09/2004 02:03:10 AM)

I want to create rt using the api.

We are currently still running Domino/Notes 5 so I don't have all the new functionality of R6.

For now I am trying just to append text to richtext , but just cant get it to work. I write the CDPABDEFINITION record and when I call update on the note , it give me an error : "Document has invalid structure".

So now I don't know if my type declaration is incorrect or what gives. If I check the length it gives me 32 but when I check with ODSLENGTH(110{CDPABDEF TYPE}) it gives 70?

Does anyone have any example where they created richtext?

My type declaration:

Type WSIG

   Signature As Integer

   Length As Integer

End Type

Type CDPABDEFINITION

   Header As WSIG

   PABID As Integer

   JustifyMode As Integer

   LineSpacing As Integer

   ParagraphSpacingBefore As Integer

   ParagraphSpacingAfter As Integer

   LeftMargin As Integer

   RightMargin As Integer

   FirstLineLeftMargin As Integer

   Tabs As Integer

   TabArray (0) As Integer'   TabArray (MAXTABS-1) As Integer

   Flags As Integer

   TabTypes As Long

   Flags2 As Integer

End Type