is there a way to change the default title for the Sticky Note? There is always the windows user name, date and time. As we are using the viewer inside our product, we need to show our product native user account, not windows account. I tried to change the default subject, but it seemed to have not effect on the title. The commands were succesfull thought because if I open the properties dialog in the viewer, the subject really is "My subject". It there a way to change the title too?
Also it is not possible to change the default "Author" property in the sticky note style, is it? That would be a decent solution too.
In the C++ code below, note that we are using a wrapper class between your ActiveX control and our application.
Code: Select all
CComVariant DataInDefaultSubjectMode( L"Custom" );
szName.Format( L"Commenting.StickyNote.Styles[%d].DefSubjMode", i );
m_ppdfxchange->SetProperty( szName, DataInDefaultSubjectMode, 0 );
szName.Format( L"Commenting.StickyNote.Styles[%d].DefSubj", i );
CComVariant DataInDefaultSubject( L"My subject" );
m_ppdfxchange->SetProperty( szName, DataInDefaultSubject, 0 );
Br,
Hannu Viitala