How to disable print function at toolbar.

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

johnnyjoe
User
Posts: 35
Joined: Thu Nov 26, 2009 3:14 am

How to disable print function at toolbar.

Post by johnnyjoe »

How to disable the print or other function at toolbar?

How the disable commanline work in VB6?

I face some run time error and setproperty of object failed
User avatar
John - Tracker Supp
Site Admin
Posts: 5223
Joined: Tue Jun 29, 2004 10:34 am

Re: How to disable print function at toolbar.

Post by John - Tracker Supp »

Are you using the developers SDK ?

If so please see the help file provided, page 241 and the examples provided :

Also there is a forum specifically for developers here:

https://forum.pdf-xchange.com/ ... m.php?f=36

Also please specofy what runtime errors you are receiving - and do view the examples as this may well assist in resolving.
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
johnnyjoe
User
Posts: 35
Joined: Thu Nov 26, 2009 3:14 am

Re: How to disable print function at toolbar.

Post by johnnyjoe »

I found out something very funny.
I had customize my own toolbar called File
File had: Save Function, Print Function and Email Function

Problem i face:
1: Open any PDF file
2: Loadsetting of my customize setting

then what i saw was the email function button on my toolbar was OFF.... why?

If i do as below then email function button was ON

1. Open any PDF File
2. Call frmMain.PDFXCview1.setProperty("View.Bars[#32908].Visible", 1)

How come, email function it didn't work in my customize setting?

I also face some bug. If i selected the last page in thumbnail and use via code to delete the last page will crash the PDFXChange.
User avatar
John - Tracker Supp
Site Admin
Posts: 5223
Joined: Tue Jun 29, 2004 10:34 am

Re: How to disable print function at toolbar.

Post by John - Tracker Supp »

You really, really need to provide the requested information in my previous post - if you want us to help.

Please also advise your email client, and zip and supply a small example application (source code and compiled) showing the problem - please remove any license information in your code.

We will then be able to assist.
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
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: How to disable print function at toolbar.

Post by Corwin - Tracker Sup »

Hi johnnyjoe,

I cannot reproduce your problems with email toolbar button and deleting of last page here. So maybe you can send us your test project so we can look at it?
johnnyjoe
User
Posts: 35
Joined: Thu Nov 26, 2009 3:14 am

Re: How to disable print function at toolbar.

Post by johnnyjoe »

At here i attached the project (VB6) that im doing poc.

Hope that you can help me. Im using PDFXChange Viewer SDK version 2.0 Build 43

How to use:
1. Press the open button. Select the How.pdf from folder in the project
2. Press the View Only button. (Will show the customize toolbar and the other setting by via code)


Problem:
1. The send by email button at toolbar is not ON
2. The snaptool button at toolbar is not ON
(If im not using load setting for my customize toolbar the No.1 - 2 will be ON)
3. Select the last page from thumbnail and then press the delete button will had error.
4. Press print button, loading to show the screen of print was so slow, take more then 30 second.(event just 6 page?)
5. Page 2 was not in correct annotation, can i just press a button and it will auto rotate for me? Mean I no need to set it rotate 90 degree or 270 degree.
6. Can i scan by twain by using this SDK?

Thank for the help! We really appreciate the help that you had given, and we are prepare to buy the product in next week. Hope all this problem can be solved.
You do not have the required permissions to view the files attached to this post.
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: How to disable print function at toolbar.

Post by Corwin - Tracker Sup »

1. The send by email button at toolbar is not ON
2. The snaptool button at toolbar is not ON
(If im not using load setting for my customize toolbar the No.1 - 2 will be ON)
the Problem is in your "Test.dat" file. You have disabled these commands before exporting the settings to a file, so you will need to make new settings file (please, at this time be more careful of what settings you are exporting).
3. Select the last page from thumbnail and then press the delete button will had error.
4. Press print button, loading to show the screen of print was so slow, take more then 30 second.(event just 6 page?)
Cannot reproduce these problems on my side. Please, update your PDF-XChange Viewer SDK to the latest version and report back if this problems still exists.
5. Page 2 was not in correct annotation, can i just press a button and it will auto rotate for me? Mean I no need to set it rotate 90 degree or 270 degree.
This page is rotated in the PDF document. The Viewer Ax doesn't have relation to this. To place this page in he correct position you can rotate it in Viewer and then save document.
6. Can i scan by twain by using this SDK?
You can do this only by using Viewer UI. For now we don't have any functions that allow to do this programmatically, as has already been explained to you in previous messages(and our answers to them) you have sent.
johnnyjoe
User
Posts: 35
Joined: Thu Nov 26, 2009 3:14 am

Re: How to disable print function at toolbar.

Post by johnnyjoe »

Thank! for the help.
User avatar
John - Tracker Supp
Site Admin
Posts: 5223
Joined: Tue Jun 29, 2004 10:34 am

Re: How to disable print function at toolbar.

Post by John - Tracker Supp »

Pleasure ;)
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
johnnyjoe
User
Posts: 35
Joined: Thu Nov 26, 2009 3:14 am

Re: How to disable print function at toolbar.

Post by johnnyjoe »

I face a new problem here.
I open a pdf file and then add some comment.
then when i go to open other file for sure PDFXChange Viewer will prompt a message box.

Now what i want to know is... how i able to track the file need to save by using via code.
So that i will prompt my own message box to ask user to save.

I really hope you can help about this....

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

Re: How to disable print function at toolbar.

Post by Corwin - Tracker Sup »

1. You may read "Modified" flag for any document and show your own save dialog if document was modified.
2. You may get event about showing "save changes" message box, and modify (or deny) this message. For more information, please see Help: "Objects::Prompts.ConfirmDocumentSave" topic.
HTH.
johnnyjoe
User
Posts: 35
Joined: Thu Nov 26, 2009 3:14 am

Re: How to disable print function at toolbar.

Post by johnnyjoe »

Thank! You really help me alots.
:D
User avatar
John - Tracker Supp
Site Admin
Posts: 5223
Joined: Tue Jun 29, 2004 10:34 am

Re: How to disable print function at toolbar.

Post by John - Tracker Supp »

;)
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