New Forum | Previous | Next | (P-PDF) Developers
Topic: Why the last word of a paragraph can not be highlighted when using "IPDDomDocument::SelectText()"?
Conf: (P-PDF) Developers, Msg: 142109
Date: 11/2/2005 11:34 AM
I met a strange problem when I tried to use PDF DOM's "IPDDomDocument::SelectText()" method.
This method is defined as following:
HRESULT SelectText(IPDDomWord *startID,
If I want to highlight the string of "This is a common approach for acquiring a progress monitor",
after I filled the first argument with the "IPDDomWord" pointer of "This", the third argument
with the "IPDDomWord" pointer of "monitor", and filled the second and fourth arguments with any random
long type value, the result was abnormal. It turned out to be "This is a common approach for acquiring
a progress" was highlighted, however, the last word "monitor" was not highlighted.
Was the way that I used to call the "SelectText" method wrong?
Is there anyone who knows why or some detailed usage rule about this method?
Any message will be helpful, thanks.