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.
using the PDF Viewer SDK it is possible to suppress / overwrite the security dailog showing up when a user clicks a hyperlink inside of a pdf document.
Dim vDataOut As Object = ""
If (modMisc.StrCompare(pName, "Prompts.ConfirmOpenSite")) Then
vDataIn = "Yes"
AxCoPDFXCview1.SetProperty("Prompts.ConfirmOpenSite.UserChoice", vDataIn, 0)
Exit Sub
End If
Is there an appropriate event id for PDF Editor SDK, which I can register to? I had a look at the available Editor events (https://www.pdf-xchange.com/forum3 ... 172#p94313) and could not find a possible option.
Nope, that's not an error. If you are having troubles with that, please create a small project with these settings included and a test document so that we can test it and hopefully find out what's wrong.
I created a project containing the code I'm using when opening a pdf document within PDF Editor (using the latest build).
CancelOpenSiteDialog.zip
My "problem" is that it is working now. While creating the sample project and noticed it is working I tried to comment out code which is running in my main project to find the difference. I ended up with the "ImportUserSettings()" routine which uses this code part (full code see sample project):
var op =
pdfCtl.Inst.CreateOp(pdfCtl.Inst.Str2ID("op.settings.import"));
if (op == null)
{
return;
}
...
op.Params.Root["Input"].v = fsInst.DefaultFileSys.StringToName(fileName);
op.Do();
After commenting it out once in my main project suppressing the security warning dialog worked. I uncommented it again and it is working now.
I think the problem was that I ran the new securtiy settings first (inside of the constructor) and the ImportSettings routine afterwards, which caused the security settings to be overwritten. Could that be the case?
Cheers,
Martin
You do not have the required permissions to view the files attached to this post.
Of course this can be the problem - you have overwritten the settings that you've just modified thus the modifications were nullified. These modifications should be done after all of the settings import (if you need one - not sure why though).