Problems with changing the Sticky Note title

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

haviital
User
Posts: 11
Joined: Mon Oct 07, 2013 11:23 am

Problems with changing the Sticky Note title

Post by haviital »

Hi,

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
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19868
Joined: Mon Jan 12, 2009 8:07 am

Re: Problems with changing the Sticky Note title

Post by Stefan - PDF-XChange »

Hi Hannu Viitala,

If you are placing those sticky notes - you can control all the needed fields using JS, and if your users need to be able to place sticky notes you could then capture the "Notifications.Selection" event and if this selection is an annotation you can check whether it's Author name is the one you want, and if not - change it accordingly using JS again.

Regards,
Stefan