We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Disable/Hide the Open, Save and Print buttons.

Thread ID:

Created:

Updated:

Platform:

Replies:

121648 Jan 12,2016 03:02 PM Apr 11,2016 12:58 PM Windows Forms 3
loading
Tags: PdfViewer
Jörgen Björkman
Asked On January 12, 2016 03:02 PM

I have a Project where I want to read a pdf document from a database and display it in the pdf Viewer Control.

Depending on user rights some users may not print and/or save the pdf as a file.

Is there a way to hide and/or disable the Open, Save and Print buttons in the Control?

Deepak Gunasekaran [Syncfusion]
Replied On January 13, 2016 12:35 AM

Hi Jörgen,

 

At present we do not have the support for disabling open, save and print buttons in the built-in toolbar of PdfViewerControl in windows forms. However we can achieve this by using Custom Toolbar sample which is available in Syncfusion Products.


We have attached a custom toolbar sample with disabled open, save and print buttons in the following link:

Custom Toolbar

 

After running the sample, please check the “Show Custom Toolbar” radio button which is at the top-left.

Please try this sample and let us know whether it suits your requirement.

 

Regards,

Deepak G


Ralf Markus
Replied On April 8, 2016 09:54 AM

HI,
my question will be:

When i use your sample of the custom toolbar this do not mean that the Build-In Toolbar will disabled or? 

I go through so much threads in your forum but i can not figure out "why" it is possible to disable the Save Button?

As i understand a lot of user want to have this functionality. How can i reach my goal?

Deepak Gunasekaran [Syncfusion]
Replied On April 11, 2016 12:58 PM

Hi Ralf,

Our custom toolbar is designed for the purpose of allowing users to customize the toolbar by filtering the buttons, changing the design etc., we can disable any button using the same as per your requirement. We have created a sample to disable SAVE button and it can be downloaded from the following location.
http://www.syncfusion.com/downloads/support/forum/121648/ze/CustomToolbar-879685658.zip

Please try this sample and let us know if you need further assistance on this.

Regards,
Deepak G

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;