but it seems that at some point the print menus have been modified (in fact now the menu is only called ‘Print’, not ‘Print Sample’ anymore) and it seems that the action’s ID I had disabled no longer correspond to the actual print actions.
In the MenuID.txt file found in the List&Label installation folder there is a list of IDs for the different actions and buttons of the Designer, Preview, etc, but I can’t find the ones corresponding to the current Print menu actions.
Can you help me?
Thanks and best regards.
P.S: I am using the L&L30 component based on FireDAC in Delphi.
Thanks for clarifying. Indeed, these actions currently cannot be disabled. We’d be open to add a seperate ID for this in one of the coming service packs for version 30. A workaround would be to set LL_OPTION_PRINTERLESS or the component’s Printerless property - this implicitly disables the print menus.
Ok, thanks, I’ll use that solution for now. However, I’ll keep an eye on future Service Packs to see if you implement it, it would be very useful for me.
I’ve tried with the PrinterLess option but unfortunately it doesn’t work for me because it disconnects the Designer from the printer, something I need to keep to edit labels for label printers with custom paper sizes.
Anyway I have found another workaround (I post it here in case someone is in the same situation), and that is to set the LL_OPTION_SUPPRESS_REALDATAPREVIEW_IN_DESIGNER parameter to TRUE. This returns the Preview handling to the old mode, making the ‘Print’ menu disappear and the ‘Print Test’ menu visible again, for which DesignerProhibitAction works perfectly.
However, I was surprised to find that with this option the Preview tab on the left side panel disappears. Is this normal?
Yes - the option essentially turns off the preview printing function entirely. This should pose no issues if it suits your needs. However, be aware that you will no longer be able to view real data previews in the Designer.
We will be introducing a new constant to disable all print-related menu items, which will be the best solution here. Stay tuned for updates.