Disable printing documents from preview window programmatically

Disable printing documents from preview window programmatically

Anonymous
Not applicable
494 Views
1 Reply
Message 1 of 2

Disable printing documents from preview window programmatically

Anonymous
Not applicable

Hi,
Can you help me please ?

i'm developping a vb.net plugin for autocad 2013 + a vb.net application, i want to disable printing documents when they are not validated by an admin...
i know two ways to do this : by undefining the Plot command or using the veto command in .net


The problem, i can't control printing from the "Preview window", it does not call the "Plot" command at all from there.

 

preview.jpg

my question: is there a way to get control of this button programmatically ?
or how can'i hide it from the Preview window ?

Thanks

0 Likes
495 Views
1 Reply
Reply (1)
Message 2 of 2

Virupaksha_aithal
Autodesk Support
Autodesk Support

Hi,

 

see if you can block the print comamnd (and any other commans)? Refer blog which explains the procedure to block AutoCAD commands through code http://through-the-interface.typepad.com/through_the_interface/2006/10/blocking_autoca.html 



Virupaksha Aithal KM
Developer Technical Services
Autodesk Developer Network

0 Likes