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)
how to pass find text in finebox using programatically?
Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan
Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
-
- User
- Posts: 141
- Joined: Sat Aug 27, 2016 11:00 am
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: how to pass find text in finebox using programatically?
Hello vivekpatel,
Please try using search before creating a new topic:
https://forum.pdf-xchange.com/ ... ind+dialog
Cheers,
Alex
Please try using search before creating a new topic:
https://forum.pdf-xchange.com/ ... ind+dialog
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
-
- User
- Posts: 141
- Joined: Sat Aug 27, 2016 11:00 am
Re: how to pass find text in finebox using programatically?
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.
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.
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: how to pass find text in finebox using programatically?
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
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
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
-
- User
- Posts: 141
- Joined: Sat Aug 27, 2016 11:00 am
Re: how to pass find text in finebox using programatically?
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.
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.
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: how to pass find text in finebox using programatically?
Hello vivekpatel,
The link that I gave you previously contains the information about how to programmatically search with Find Dialog (Ctrl+F).
Cheers,
Alex
The link that I gave you previously contains the information about how to programmatically search with Find Dialog (Ctrl+F).
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ