Custom Search Path

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

netres
User
Posts: 7
Joined: Tue Jun 21, 2011 4:05 pm

Custom Search Path

Post by netres »

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
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19885
Joined: Mon Jan 12, 2009 8:07 am

Re: Custom Search Path

Post by Stefan - PDF-XChange »

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.
netres
User
Posts: 7
Joined: Tue Jun 21, 2011 4:05 pm

Re: Custom Search Path

Post by netres »

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.
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19885
Joined: Mon Jan 12, 2009 8:07 am

Re: Custom Search Path

Post by Stefan - PDF-XChange »

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
netres
User
Posts: 7
Joined: Tue Jun 21, 2011 4:05 pm

Re: Custom Search Path

Post by netres »

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
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19885
Joined: Mon Jan 12, 2009 8:07 am

Re: Custom Search Path

Post by Stefan - PDF-XChange »

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
netres
User
Posts: 7
Joined: Tue Jun 21, 2011 4:05 pm

Re: Custom Search Path

Post by netres »

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
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19885
Joined: Mon Jan 12, 2009 8:07 am

Re: Custom Search Path

Post by Stefan - PDF-XChange »

Sure Leigh,

Please test the latest build and let us know how it goes with it.

Best,
Stefean
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2445
Joined: Thu Jun 30, 2005 4:11 pm

Re: Custom Search Path

Post by Vasyl - PDF-XChange »

Hi, 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.
This small bug will be fixed in the next build.
how can we achieve only searching the specified folder?
In the new build you will be able to do it:

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.
netres
User
Posts: 7
Joined: Tue Jun 21, 2011 4:05 pm

Re: Custom Search Path

Post by netres »

Thanks for the reply. This is excellent!
Do you have any idea on when the new build be available?


Thanks

Leigh
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19885
Joined: Mon Jan 12, 2009 8:07 am

Re: Custom Search Path

Post by Stefan - PDF-XChange »

Hello Leigh,

If all goes to plan it should be this Thursday or Friday.

Best,
Stefan
netres
User
Posts: 7
Joined: Tue Jun 21, 2011 4:05 pm

Re: Custom Search Path

Post by netres »

Hi Stefan,

Any news on the latest build, and how do i get it.

Thanks

Leigh
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19885
Joined: Mon Jan 12, 2009 8:07 am

Re: Custom Search Path

Post by Stefan - PDF-XChange »

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
netres
User
Posts: 7
Joined: Tue Jun 21, 2011 4:05 pm

Re: Custom Search Path

Post by netres »

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?
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2445
Joined: Thu Jun 30, 2005 4:11 pm

Re: Custom Search Path

Post by Vasyl - PDF-XChange »

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.