New build

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

Rad1
User
Posts: 108
Joined: Wed May 13, 2009 2:21 pm

New build

Post by Rad1 »

Hello,

First, I want to congratulate you for this good work. I have some questions :

1/ How can I change the text that's appear in the viewer whene I change the application language "you may open an existing document by double clicking here..." ?

2/ I am using the following code to hide the "Close active tab" button. It worked in the last release, but now, I must make a changes on the view ( ex : moving image,....) to see the button disabled. How can I hide or disable it ?

Code: Select all

PDFView.SetProperty("Commands[#32937].state", "Offline", 0) // I tested this one
PDFView.SetProperty("Commands[#32937].state", "Disable", 0) // I tested this too, and both...
Thank you for help.
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: New build

Post by Corwin - Tracker Sup »

1. If you use localization file then you can modify it by using "PDF-XChange Viewer Languages Tool" which can be found here:
https://www.pdf-xchange.com/Distrib ... ion_Tools/
"You may open an existing document by double clicking here..." is in the String\Labels category.
2. This is a bug in Viewer ActiveX. We will fix this as soon as possible.
Thanks.
Rad1
User
Posts: 108
Joined: Wed May 13, 2009 2:21 pm

Re: New build

Post by Rad1 »

I used Language tools but I can't find the property to change this text. Please see this picture to know what I want to modify :

Image

I want to remove it or change it because all opening actions by user are denied.

Thank you friend.
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: New build

Post by Corwin - Tracker Sup »

Before running ViewerLangTool, please replace PDFXCview.exe in "PDF-X Vwr V2" folder with latest one.
Image
By the way - by default in Viewer ActiveX this function (double clicking in background) is disabled.
To enable or disable it, you can set "General.AllowOpenDocumentByDblClick" property.
Rad1
User
Posts: 108
Joined: Wed May 13, 2009 2:21 pm

Re: New build

Post by Rad1 »

Corwin wrote:1. 2. This is a bug in Viewer ActiveX. We will fix this as soon as possible.
Can you inform me when this can be fixed ? You know, it is very important for our product to deny/hide all close buttons. Because we need to do a personnalized actions before closing document. Another alternative consist to intercept Closing Event to do some treatment.

Thanks.
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: New build

Post by Corwin - Tracker Sup »

In new build we will add new feature to deny closing document.
For now I may suggest you to work in SDI mode (without tabs) and disable all closing menu.

The problem is that in current realization you cannot fully disable the close button on the document tab.
Rad1
User
Posts: 108
Joined: Wed May 13, 2009 2:21 pm

Re: New build

Post by Rad1 »

I can't change the concept of our product. I have to open more than one document in the same view.

I don't undertand why you have this bug just in this release. In the last one it works normaly when I use the same code.

I hope you can fix this bug for this release. I'm in the final steps of developement. I can't wait for the next release.

Thanks.
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: New build

Post by Corwin - Tracker Sup »

Good news. We have added new document property "NoClose" which restricts document closing from Viewer ActiveX UI. In next few days we will try to give you a technical build.
Rad1
User
Posts: 108
Joined: Wed May 13, 2009 2:21 pm

Re: New build

Post by Rad1 »

How many days exactly ? I need to know because I must inform my development department.
thanks.
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: New build

Post by Corwin - Tracker Sup »

I think that to the end of this week we can make a technical build.
Rad1
User
Posts: 108
Joined: Wed May 13, 2009 2:21 pm

Re: New build

Post by Rad1 »

Okey, Thank you very much.
Rad1
User
Posts: 108
Joined: Wed May 13, 2009 2:21 pm

Re: New build

Post by Rad1 »

hello,

Any news about the technical build :?:
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: New build

Post by Corwin - Tracker Sup »

As I was informed tomorrow it will be ready.
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: New build

Post by Corwin - Tracker Sup »

Hello Rad1.
In new technical build you can restrict user to close document.
To do this you can set "NoClose" document property to 1 (true).

Code: Select all

CoPDFXCview1.SetDocumentProperty(0,"NoClose", 1, 0); // restrict close operation
CoPDFXCview1.SetDocumentProperty(0,"NoClose", 0, 0); // allows close operation
By default this property is set to false.
moke@napconet.com
User
Posts: 60
Joined: Fri Oct 24, 2008 5:17 pm

Re: New build

Post by moke@napconet.com »

I am having similar issue regarding opening docs, fixed w/

Code: Select all

Call CoPDFXCview1.SetProperty("General.AllowOpenDocumentByDblClick", "false", 0) ' hide you may open...
Having to set the "NoClose" for each doc seems a bit tedious though. can this be set globaly?
Rad1
User
Posts: 108
Joined: Wed May 13, 2009 2:21 pm

Re: New build

Post by Rad1 »

Hi,

You can disable or set to offline all close commands. The code look like :

Code: Select all

PDFView.SetProperty("View.ShowTabCloseButtons", 0, 0) //to hide tab close buttons
		PDFView.SetProperty("Commands[#33256].state", "Offline", 0) //close this tab
		PDFView.SetProperty("Commands[#33255].state", "Offline", 0) //close all tabs but this
		PDFView.SetProperty("Commands[#57682].state", "Offline", 0) //close window
		
		PDFView.SetProperty("Commands[#32937].state", "Offline", 0) // close active tab
		PDFView.SetProperty("Commands[#32937].state", "Disable", 0) // close active tab
		
		PDFView.SetProperty("Commands[#33038].state", "Offline", 0) // close active tab
		PDFView.SetProperty("Commands[#57601].state", "Offline", 0) // Open File
		PDFView.SetProperty("Commands[#57602].state", "Offline", 0) // Close File 
HTH
User avatar
John - Tracker Supp
Site Admin
Posts: 5223
Joined: Tue Jun 29, 2004 10:34 am

Re: New build

Post by John - Tracker Supp »

Thanks Rad ;)
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com