PDF-XChange - Tracker PDF Viewer - TIFF-XChange - Image-XChange - XMF-XChange - Raster-XChange - Support

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Chris - Tracker Supp, Vasyl-Tracker Dev Team, Sean - Tracker, Tracker Supp-Stefan, Ivan - Tracker Software

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.
 
RMan
User
Topic Author
Posts: 130
Joined: Tue Jul 02, 2013 10:06 pm

Override Stamp Folder

Thu Dec 07, 2017 1:59 pm

Is there a way we can override the Stamps folder location so if the user has your end user PDF-XChange Editor installed we don't mess up the stamps they use with that?
 
User avatar
Sasha - Tracker Dev Team
User
Posts: 3450
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Override Stamp Folder

Sat Dec 09, 2017 10:27 am

Hello RMan,

Use this method:
https://sdkhelp.tracker-software.com/vi ... tStdFolder
With the PXV_StdFolder_Stamps folder ID.
Note that this method should be used on the early stage - for example after you have initialized the IPXV_Inst.

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
 
dconner
User
Posts: 28
Joined: Fri Feb 07, 2014 10:27 pm

Re: Override Stamp Folder

Fri Mar 09, 2018 1:00 am

Hi All,

I've tried and tried to set the stamps folder, however, it just won't take. I'm calling this method:

            pdfx.Inst.SetStdFolder(PXV_StdFolderID.PXV_StdFolder_Stamps, folder, true);


Here in the forum it says to call after Init but here in the documentation it says to call it before:

https://sdkhelp.tracker-software.com/view/PXV:IPXV_Inst_SetStdFolder

Either way (before or after) I could not get it to work. I'm using:

pdfx.SetLicKey(key);


Am I missing something?

Thanks
 
User avatar
Sasha - Tracker Dev Team
User
Posts: 3450
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Override Stamp Folder

Sat Mar 10, 2018 7:35 am

Hello dconner,

The IPXV_Inst instance itself should be created and initialized before the IPXV_Control if you are using one and then the Shutdown method should be used on form closing/destructor.
Then try doing it as the Wiki remark advises and see whether it will work for you.
More info here:
https://sdkhelp.tracker-software.com/vi ... _Inst_Init
https://sdkhelp.tracker-software.com/view/PXV:CoClasses

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
 
dconner
User
Posts: 28
Joined: Fri Feb 07, 2014 10:27 pm

Re: Override Stamp Folder

Tue Mar 13, 2018 10:56 pm

Yep! That did it. Thanks for your speedy reply.

                PDFEditorWrapper.PDFCtrl.SetStampsFolder(@"");
                PDFEditorWrapper.PDFCtrl.Init(licKey);

                InitializeComponent();

                pdfctrl.InitIDS();


and here is my SetStampsFolder() method:

      public static bool SetStampsFolder(string folder)
      {
         try
         {
                PDFXEdit.PXV_Inst Inst = new PDFXEdit.PXV_Inst();
                Inst.SetStdFolder(PXV_StdFolderID.PXV_StdFolder_Stamps, folder, true);
                Inst = null;
            }
            catch
         {
            return false;
         }
         return true;
      }
 
User avatar
Sasha - Tracker Dev Team
User
Posts: 3450
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Override Stamp Folder

Wed Mar 14, 2018 7:14 am

:)
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

Who is online

Users browsing this forum: No registered users and 2 guests