I am calling UF_TABNOT_set_cell_text to write to a Tabular Note some text strings containing representations of floating-point numbers. When I call "UF_TABNOT_set_default_cell_prefs" before I add all the rows to the Tabular Note, it doesn't seem to take -- although I pass in a UF_TABNOT_cell_prefs_t with the precision field set to 2, the values are instead formatted with a precision of 4 or something like that. If I instead call the following before each cell write:
prefs.format = UF_TABNOT_format_fixed;
prefs.precision = 2;
the values are then displayed with precision 2.
Am I misunderstanding what UF_TABNOT_set_default_cell_prefs is supposed to do, or is it not working?
After you use "UF_TABNOT_set_default_cell_prefs", are you creating a new note and adding information, or adding information to an existing tabular note?
I think "UF_TABNOT_set_default_cell_prefs" will set the preferences for the next note(s) that are created. If you are working with an existing tabular note, you will have to change the existing cell preferences.