Page 1 of 1

how to pass find text in finebox using programatically?

Posted: Thu Aug 17, 2017 7:07 am
by vivekpatel
Hello,

Here i want to fit your pdfcontrol in our system to find text in doc.
There is one search form, from that i want to fine "abc" so it gives file list with "abc" text.
now i pass this text to your find dialog so what to do?

here i able to open find dialog using below code, but how to pass text?

Dim findfromsearch As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.find")
pdfctrl.Inst.ExecUICmd2(findfromsearch.ID)

Re: how to pass find text in finebox using programatically?

Posted: Thu Aug 17, 2017 9:33 am
by Sasha - Tracker Dev Team
Hello vivekpatel,

Please try using search before creating a new topic:
https://forum.pdf-xchange.com/ ... ind+dialog

Cheers,
Alex

Re: how to pass find text in finebox using programatically?

Posted: Tue Aug 22, 2017 5:36 am
by vivekpatel
Hello,
I don't get any idea about it how to work with it.
could you please provide some more details about findbox and how to pass text in it, i don't want information of search.
Regards.

Re: how to pass find text in finebox using programatically?

Posted: Tue Aug 22, 2017 8:23 am
by Sasha - Tracker Dev Team
Hello vivekpatel,

By search I meant search on forums. I gave you the link to the topic that contains the information that you require about the Find box.

Cheers,
Alex

Re: how to pass find text in finebox using programatically?

Posted: Tue Aug 22, 2017 10:21 am
by vivekpatel
Hello,
I got the solution but that is not that i want.

code:

js = GetJavascript(dtRow("SEARCHTEXT").ToString)
pdfctrl.Inst.ExecuteJS(pdfctrl.Doc, js, PXV_ActionTriggerClass.PAEC_Annot, PXV_ActionTriggerSubclass.PAESC_Exec, Nothing)

Public Function GetJavascript(ByVal searchText As String) As String
Try
Dim script As New StringBuilder()
script.AppendLine("search.refine = false")
script.AppendLine("search.matchCase = false")
script.AppendLine(String.Format("search.query(""{0}"", ""ActiveDoc"");", searchText))

Return script.ToString()

Catch ex As Exception
DVCommon.WriteLogError(DVCommon.LogLocation.Client, ex)
End Try

End Function

This code works fine and give the result that you search, but it open up searchpane in right side in control, instead of that i want fine popup(ctrl + F) and i want to pass text in that popup and it gives the result through the code.

Re: how to pass find text in finebox using programatically?

Posted: Tue Aug 22, 2017 12:16 pm
by Sasha - Tracker Dev Team
Hello vivekpatel,

The link that I gave you previously contains the information about how to programmatically search with Find Dialog (Ctrl+F).

Cheers,
Alex