DWF Viewer (Read Only)
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How disable "Save As" button

4 REPLIES 4
Reply
Message 1 of 5
kairat.galiyev
405 Views, 4 Replies

How disable "Save As" button

I am working at the project using .NET
with DWF Interop components.
I want to know how disable Save As button's functionality?
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: kairat.galiyev

This may help you, I have a sample written for JavaScript that should give
you enough information to figure out where the API is and how to call it
(sorry, I don't have a quick sample for .NET)

To remove the Save button from the toolbar
var PageViewer = ADViewer.Viewer;
PageViewer.ShowCommand("SAVE", FALSE);

To remove the save as command from the context menu (right mouse menu)
ADViewer.ContextMenu.RemoveItem("Root.SaveAs", -1);


wrote in message news:5042023@discussion.autodesk.com...
I am working at the project using .NET
with DWF Interop components.
I want to know how disable Save As button's functionality?
Message 3 of 5

Oh! Thanx a lot!
It's working!

With best regards, Kairat
Message 4 of 5
Anonymous
in reply to: kairat.galiyev

Thanks John, I can use this also.

It sure would be nice to have a GOOD API help file. Why keep secrets? By
getting programmers to use the DWF Viewer, it will get distributed far and
wide as part of software applications.





"John Schmier (ADSK)" wrote in
message news:5043850@discussion.autodesk.com...
This may help you, I have a sample written for JavaScript that should give
you enough information to figure out where the API is and how to call it
(sorry, I don't have a quick sample for .NET)

To remove the Save button from the toolbar
var PageViewer = ADViewer.Viewer;
PageViewer.ShowCommand("SAVE", FALSE);

To remove the save as command from the context menu (right mouse menu)
ADViewer.ContextMenu.RemoveItem("Root.SaveAs", -1);


wrote in message news:5042023@discussion.autodesk.com...
I am working at the project using .NET
with DWF Interop components.
I want to know how disable Save As button's functionality?
Message 5 of 5
Anonymous
in reply to: kairat.galiyev

I cannot access those methods !? How did you get them ?

Regards

Sébastien

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report