EmbedNote
Attaches a Note to Worksheet cell
BOOL EmbedNote( int nRow, int nCol, Note & note, DWORD dwEmbedInfo = 0 )
returns TRUE if successful
EX1
//Attach a note to worksheet cell. void Worksheet_EmbedNote_Ex1() { Worksheet wks = Project.ActiveLayer(); if(!wks) return; Note npg; npg.Create(); npg.Text = "Embed note"; wks.EmbedNote(0, 0, npg); }
EX2
//Add a note as a new sheet of Book1 void Worksheet_EmbedNote_Ex2() { WorksheetPage wp("Book1"); if(!wp) return; int index = wp.AddLayer(); Worksheet wks = wp.Layers(index); if(!wks) return; Note npg; npg.Create(); npg.Text = "Embed note"; wks.SetAsHolderSheet(); wks.EmbedNote(0, 0, npg, EMBEDGRAPH_DO_UNDO); }
Worksheet::EmbeddedPages, Worksheet::EmbedGraph, Worksheet::EmbedMatrix Worksheet::SetAsHolderSheet
origin.h