Skip to main content
Duy-NV-Niteco
Known Participant
January 15, 2016
Answered

Can not get active document after SignalResponderService triggered.

  • January 15, 2016
  • 1 reply
  • 505 views

Hi everybody,

I've been trying to modify a document right after it opens.

I am  using kAfterNewDocSignalResponderService signal to catch the signal of opening a new document.

But unfortunately, when this signal triggers, the document is not actually opened.

So i can not get the document's UIDRef.

Can anyone tell me how to catch it.

Thanks.

Duy

This topic has been closed for replies.
Correct answer Markus Freitag

Hi Duy,

the responder gets a signalMgr as argument which has an IDocumentSignalData interface on its boss class. From that interface you get the document.

Markus

1 reply

Markus FreitagCorrect answer
Inspiring
January 15, 2016

Hi Duy,

the responder gets a signalMgr as argument which has an IDocumentSignalData interface on its boss class. From that interface you get the document.

Markus

Duy-NV-Niteco
Known Participant
January 15, 2016

Hi Markus,

Yeah, you're right.

I just found it

Thanks

Duy.