Is there a list of what each color is in number ( i.e. 1=white ), or is there a formula that will calculate the value for each color.
Thanks
Jacob
Is there a list of what each color is in number ( i.e. 1=white ), or is there a formula that will calculate the value for each color.
Thanks
Jacob
Subject: change background color w/ $paper
Alternatively, you could create a test database and use this code in a manual agent to create documents that would display the range of paper colors to you.
Sub Initialize
Dim session As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Dim i As Integer
Set db = session.CurrentDatabase
For i = 0 To 239
Set doc = New NotesDocument(db)
Call doc.ReplaceItemValue("$PaperColor", i )
doc.Form = "Render"
Call doc.Save(True, True, False)
Print i
Next
End Sub
Subject: RE: change background color w/ $paper
The most obvious choices are the first sixteen, which I have taken below straight from the C API, but the numbers from 16 to 255 represent other colors in the color poallette being used. You can test for them, but they may vary depending on the color pallette, so I’d stick with these.
Also remember that there is a $PaperColorEx field which is rich text and will override the $PaperColor field if it exists. That is set by picking an RGB color from the color picker, but you just may want to remove it if you want to control the background color.
#define NOTES_COLOR_BLACK 0
#define NOTES_COLOR_WHITE 1
#define NOTES_COLOR_RED 2
#define NOTES_COLOR_GREEN 3
#define NOTES_COLOR_BLUE 4
#define NOTES_COLOR_MAGENTA 5
#define NOTES_COLOR_YELLOW 6
#define NOTES_COLOR_CYAN 7
#define NOTES_COLOR_DKRED 8
#define NOTES_COLOR_DKGREEN 9
#define NOTES_COLOR_DKBLUE 10
#define NOTES_COLOR_DKMAGENTA 11
#define NOTES_COLOR_DKYELLOW 12
#define NOTES_COLOR_DKCYAN 13
#define NOTES_COLOR_GRAY 14
#define NOTES_COLOR_LTGRAY 15