Custom Search Path
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- User
- Posts: 7
- Joined: Tue Jun 21, 2011 4:05 pm
Custom Search Path
Hi,
I'm trying to add some functionality where i can initiate a search from my application which uses the PDF Viewer SDK, but i want to specify the folders (possibly multiple) that the search runs in by default. this would then show the results in the standard search pane.
If anyone could help me out and point me in the right direction, your help would be greatly appreciated.
Kind Regards
Leigh Mumford
I'm trying to add some functionality where i can initiate a search from my application which uses the PDF Viewer SDK, but i want to specify the folders (possibly multiple) that the search runs in by default. this would then show the results in the standard search pane.
If anyone could help me out and point me in the right direction, your help would be greatly appreciated.
Kind Regards
Leigh Mumford
-
- Site Admin
- Posts: 19885
- Joined: Mon Jan 12, 2009 8:07 am
Re: Custom Search Path
Hello Leigh Mumford,
Please have a look at the Viewer AX SDK Manual and section
2.2.2.16 Search in particular for the commands you can use to fully control the search pane and results in our Viewer AX.
Best,
Stefan
p.s. I also removed the duplicate topic.
Please have a look at the Viewer AX SDK Manual and section
2.2.2.16 Search in particular for the commands you can use to fully control the search pane and results in our Viewer AX.
Best,
Stefan
p.s. I also removed the duplicate topic.
-
- User
- Posts: 7
- Joined: Tue Jun 21, 2011 4:05 pm
Re: Custom Search Path
Hi,
I have been trying, but failing to set the search directory in the search pane, I have been trying the following code:
Dim SearchIn() As Object = {2, FolderPath}
PDFViewer.SetProperty("Search.Where", SearchIn)
What i am trying to do is set the default path in the search pane. this code does not error but does not produce a result either.
Am i being a bit of a idiot and missing something simple?
Cheers
Leigh
P.S. Thanks for deleting the post, i couldn't see the message telling me to wait for looking.
I have been trying, but failing to set the search directory in the search pane, I have been trying the following code:
Dim SearchIn() As Object = {2, FolderPath}
PDFViewer.SetProperty("Search.Where", SearchIn)
What i am trying to do is set the default path in the search pane. this code does not error but does not produce a result either.
Am i being a bit of a idiot and missing something simple?
Cheers
Leigh
P.S. Thanks for deleting the post, i couldn't see the message telling me to wait for looking.
-
- Site Admin
- Posts: 19885
- Joined: Mon Jan 12, 2009 8:07 am
Re: Custom Search Path
Hello netres,
You need to specify Search.Where.Mode to be equal to 2 first, before setting
Search.Where.FolderName to the desired value - I just tested that and it did work fine for me.
Best,
Stefan
You need to specify Search.Where.Mode to be equal to 2 first, before setting
Search.Where.FolderName to the desired value - I just tested that and it did work fine for me.
Best,
Stefan
-
- User
- Posts: 7
- Joined: Tue Jun 21, 2011 4:05 pm
Re: Custom Search Path
Hi Sefan,
This is worked now - although it has added the path to the Where drop down, but it has not made it the default value.
I can't see anything in the documentation, how can we achieve only searching the specified folder?
Many Thanks
Leigh
This is worked now - although it has added the path to the Where drop down, but it has not made it the default value.
I can't see anything in the documentation, how can we achieve only searching the specified folder?
Many Thanks
Leigh
-
- Site Admin
- Posts: 19885
- Joined: Mon Jan 12, 2009 8:07 am
Re: Custom Search Path
Hello Leigh,
I just tried once again - it is always changing the folder for me - even if I manually change it to something else first.
Please make sure that you are using the latest build of our SDK. You can check the version number on e.g. the .dll files provided with the SDK.
As for only searching in the specified folder - I am not sure if this can be restricted and will need to speak with our dev guys to verify.
Best,
Stefan
I just tried once again - it is always changing the folder for me - even if I manually change it to something else first.
Please make sure that you are using the latest build of our SDK. You can check the version number on e.g. the .dll files provided with the SDK.
As for only searching in the specified folder - I am not sure if this can be restricted and will need to speak with our dev guys to verify.
Best,
Stefan
-
- User
- Posts: 7
- Joined: Tue Jun 21, 2011 4:05 pm
Re: Custom Search Path
Hi Stefan,
We don't require then product to only search in out folder, as long as its the default option.
I'll trying the latest SDK.
Thanks
Leigh
We don't require then product to only search in out folder, as long as its the default option.
I'll trying the latest SDK.
Thanks
Leigh
-
- Site Admin
- Posts: 19885
- Joined: Mon Jan 12, 2009 8:07 am
Re: Custom Search Path
Sure Leigh,
Please test the latest build and let us know how it goes with it.
Best,
Stefean
Please test the latest build and let us know how it goes with it.
Best,
Stefean
-
- Site Admin
- Posts: 2445
- Joined: Thu Jun 30, 2005 4:11 pm
Re: Custom Search Path
Hi, Leigh.
ctrl.SetProperty("Search.Where.Mode", "InFolder");
ctrl.SetProperty("Search.Where.FolderName", "E:\_PDF");
ctrl.SetProperty("Search.Where.Disabled", "true"); // new property - disables the "Where" combobox
- after this the search pane will display the "E:\_PDF" string in disabled "Where" combo...
Wait for the new build (upcoming).
Best
regards.
This small bug will be fixed in the next build.This is worked now - although it has added the path to the Where drop down, but it has not made it the default value.
In the new build you will be able to do it:how can we achieve only searching the specified folder?
ctrl.SetProperty("Search.Where.Mode", "InFolder");
ctrl.SetProperty("Search.Where.FolderName", "E:\_PDF");
ctrl.SetProperty("Search.Where.Disabled", "true"); // new property - disables the "Where" combobox
- after this the search pane will display the "E:\_PDF" string in disabled "Where" combo...
Wait for the new build (upcoming).
Best
regards.
PDF-XChange Co. LTD (Project Developer)
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
-
- User
- Posts: 7
- Joined: Tue Jun 21, 2011 4:05 pm
Re: Custom Search Path
Thanks for the reply. This is excellent!
Do you have any idea on when the new build be available?
Thanks
Leigh
Do you have any idea on when the new build be available?
Thanks
Leigh
-
- Site Admin
- Posts: 19885
- Joined: Mon Jan 12, 2009 8:07 am
Re: Custom Search Path
Hello Leigh,
If all goes to plan it should be this Thursday or Friday.
Best,
Stefan
If all goes to plan it should be this Thursday or Friday.
Best,
Stefan
-
- User
- Posts: 7
- Joined: Tue Jun 21, 2011 4:05 pm
Re: Custom Search Path
Hi Stefan,
Any news on the latest build, and how do i get it.
Thanks
Leigh
Any news on the latest build, and how do i get it.
Thanks
Leigh
-
- Site Admin
- Posts: 19885
- Joined: Mon Jan 12, 2009 8:07 am
Re: Custom Search Path
Hello Leigh,
The build was released early last Friday European time, and to get it all you have to do is visit the downloads section on our website:
https://www.pdf-xchange.com/product/downloads/sdk
Best,
Stefan
The build was released early last Friday European time, and to get it all you have to do is visit the downloads section on our website:
https://www.pdf-xchange.com/product/downloads/sdk
Best,
Stefan
-
- User
- Posts: 7
- Joined: Tue Jun 21, 2011 4:05 pm
Re: Custom Search Path
Hi
Is it possible to set multiply search locations in the drop down list. EG
Root
- Sub Folder 1
- Sub Folder 2
... and so on?
Is it possible to set multiply search locations in the drop down list. EG
Root
- Sub Folder 1
- Sub Folder 2
... and so on?
-
- Site Admin
- Posts: 2445
- Joined: Thu Jun 30, 2005 4:11 pm
Re: Custom Search Path
Sorry, there is no way to do this, please wait for SDK V3...
PDF-XChange Co. LTD (Project Developer)
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.