When hadndling a document change event (OnDocumentChange) what is the information that I can access. Is there a class/type that I can typecast the generic parameter e of type System.EventArgs ?
OnDocumentChangeEvent
Re: OnDocumentChangeEvent
Support · Jul 30, 2012Hello,
The argument e of the OnDocumentChange event returns the file path of the PDF that is being opened. You can also access the PDF Viewer object and call the methods and access its properties.
void dynamicPDFViewerControl1_OnOpenDocument(object sender, ceTe.DynamicPDF.AxViewer.Control._IPDFViewerEvents_OnOpenDocumentEvent e)
{
string path = e.filePath;
dynamicPDFViewerControl1.ShowNavigationPanels(true);
}
Thanks,
ceTe Software Support Team.
Re: OnDocumentChangeEvent
Forum member · Jul 30, 2012Thank you for the response..All though my question was related to OnDocumentChangeEvent and Not OpenDocument event
Re: OnDocumentChangeEvent
Support · Jul 30, 2012Hello,
Sorry for the confusion. OnDocumentChange event is triggered when the document content is changes. The EventArgs parameter does not have any information, however you can still call the Viewer instance as suggested in our last post.
Thanks,
ceTe Software Support Team.