At the moment PDFXChange looks at the following directory for the stamp palettes:
C:\Users\<username>\AppData\Roaming\Tracker Software\PDFXEditor.SDK\Stamps
Is there a way to modify the location of the directory that is used via code?
Thanks
Simon
Change default stamp path
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.
-
- Site Admin
- Posts: 2353
- Joined: Thu Jun 30, 2005 4:11 pm
- Location: Canada
Re: Change default stamp path
Hi Simon.
Currently the Editor looking for stamps in 3 locations:
AppPath (readonly for users):
"c:\Program Files\Tracker Software\PDF Editor\Stamps\"
UserPath:
c:\Users\<username>\AppData\Roaming\Tracker Software\PDFXEditor.SDK\Stamps
SharedPath (readonly for users) via GroupPolicy-value in the registry:
HKLM\Software\Policies\Tracker Software\PDFXEditor\3.0\Misc
"t.SharedStampsFolder" : string
===
Via code you can change the AppPath and UserPath by:
IPXV_Inst::SetStdFolder(PXV_StdFolder_Stamps, myAppPath, false);
IPXV_Inst::SetStdFolder(PXV_StdFolder_Stamps, myUserPath, true);
- but it is important to do it before calling the IPXV_Inst::Init(). In our FullDemo sample project you may see how to use customized IPXV_Inst::Init() even before instantiating the Editor's ActiveX Control object on the form.
Cheers.
Currently the Editor looking for stamps in 3 locations:
AppPath (readonly for users):
"c:\Program Files\Tracker Software\PDF Editor\Stamps\"
UserPath:
c:\Users\<username>\AppData\Roaming\Tracker Software\PDFXEditor.SDK\Stamps
SharedPath (readonly for users) via GroupPolicy-value in the registry:
HKLM\Software\Policies\Tracker Software\PDFXEditor\3.0\Misc
"t.SharedStampsFolder" : string
===
Via code you can change the AppPath and UserPath by:
IPXV_Inst::SetStdFolder(PXV_StdFolder_Stamps, myAppPath, false);
IPXV_Inst::SetStdFolder(PXV_StdFolder_Stamps, myUserPath, true);
- but it is important to do it before calling the IPXV_Inst::Init(). In our FullDemo sample project you may see how to use customized IPXV_Inst::Init() even before instantiating the Editor's ActiveX Control object on the form.
Cheers.
Vasyl Yaremyn
Tracker Software Products
Project Developer
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Tracker Software Products
Project Developer
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
-
- User
- Posts: 510
- Joined: Sat May 16, 2009 1:55 pm
Re: Change default stamp path
Thanks for the quick response.
However, is there a way to specify a completely different path? The reason why I ask is that my application has stamps per project which are saved on a network path. When a user logs into my application it copies the stamps for the project they logged into to there local user profile path. The issue that I have is if the user has two different projects open these will have different stamps. Therefore I would like to modify the path to have a sub directory for each project.
Thanks
Simon
However, is there a way to specify a completely different path? The reason why I ask is that my application has stamps per project which are saved on a network path. When a user logs into my application it copies the stamps for the project they logged into to there local user profile path. The issue that I have is if the user has two different projects open these will have different stamps. Therefore I would like to modify the path to have a sub directory for each project.
Thanks
Simon
-
- Site Admin
- Posts: 2353
- Joined: Thu Jun 30, 2005 4:11 pm
- Location: Canada
Re: Change default stamp path
The SetStdFolder changes the path globally, once per runtime. So, if you have opened two different projects simultaneously in one runtime and you want to see different stamps in the context of each project - then using of SetStdFolder is not suitable for you, unfortunately.
And seems currently is impossible to get per-project customization of stamps in the case when different projects can be opened in the same app-process. But when you have process-per-project model - then SetStdFolder is the good solution for you...
And seems currently is impossible to get per-project customization of stamps in the case when different projects can be opened in the same app-process. But when you have process-per-project model - then SetStdFolder is the good solution for you...
Vasyl Yaremyn
Tracker Software Products
Project Developer
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Tracker Software Products
Project Developer
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
-
- User
- Posts: 1
- Joined: Thu Oct 19, 2023 1:47 pm
Re: Change default stamp path
After 20 years: Is this still correct? The variant does not work for me.Vasyl-Tracker Dev Team wrote: ↑Tue Mar 21, 2023 6:14 pm SharedPath (readonly for users) via GroupPolicy-value in the registry:
HKLM\Software\Policies\Tracker Software\PDFXEditor\3.0\Misc
"t.SharedStampsFolder" : string
-
- Site Admin
- Posts: 2353
- Joined: Thu Jun 30, 2005 4:11 pm
- Location: Canada
Re: Change default stamp path
Hi Tom.
The GroupPolicy-value in the registry:
HKLM\Software\Policies\Tracker Software\PDFXEditor\3.0\Misc: t.SharedStampsFolder
- it works only for EndUser-Editor app, not for the Editor-SDK. With SDK you need to use the SetStdFolder-method instead.
Cheers.
The GroupPolicy-value in the registry:
HKLM\Software\Policies\Tracker Software\PDFXEditor\3.0\Misc: t.SharedStampsFolder
- it works only for EndUser-Editor app, not for the Editor-SDK. With SDK you need to use the SetStdFolder-method instead.
Cheers.
Vasyl Yaremyn
Tracker Software Products
Project Developer
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Tracker Software Products
Project Developer
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
-
- User
- Posts: 510
- Joined: Sat May 16, 2009 1:55 pm
Re: Change default stamp path
Thanks for your help. I have this working now
Simon
Simon
-
- Site Admin
- Posts: 17949
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London