LotusScript to C API Programming Guide

rtLib Domino Rich Text Management template
Home
Hide details for ContentContent
Getting started
Basic declaration conversion
Data and reference types
Editing reference type items
Purchase
Ready-to-use samples
Show details for Online resourcesOnline resources
Forum
Links
Happy readers

Anonymous

login


 

Hosted by Prominic.NET, Inc.
Main topic: Need to change Note header from document to design element

Need to change Note header from document to design element (by Michael Fisher, 08/23/2007 09:50:58 AM)

I am attempting to take a design element that was converted to a document through a C application back into a design element in LotusScript calling the C API. Here is a overview of the program flow. The problem I am having is the error returned from NSFNoteUpdate says that Notes Class cannot be changed after written to disk, which tells me that during the NSFNoteCopy it is not being sent to memory. Is it possible to move the element to memory and modify it before saving to disk via LotusScript? Am I missing something?

TIA

'//Open Notes db and retrieve handle

irc = NSFDbOpen(dbCurrent.FilePath, hdb)

'// Copy Note to memory

irc = NSFNoteCopy(hNote, hNoteNew)

'// Convert TWIN document to design element

Call NSFNoteSetInfo(hNoteNew, NOTE_CLASS, SPECIAL_ID_NOTE Or NOTE_CLASS_VIEW)

'// Update disk from memory

irc = NSFNoteUpdate (hNoteNew,0)