Disable options in preview

Hello,

In a preview there are options for “Export”, “Fax”, “E-mail” and “Quick print” in the ribbon. Is it possible to disable or hide one or more of these buttons in the preview mode?
I am using LL18 and Xbase++.
I tried setting LL_OPTION_NOMAILVARS, and LL_OPTIONSTR_EXPORTS_ALLOWED to false, but the button are still there and active.

Regards,
Jack Duijf.

Hi!

If you mean the preview in the designer i would try the API
LlDesignerProhibitAction…

Regards

Hello,

I would like to disable options for “Export”, “Fax”, “E-mail” and “Quick print” in the ribbon in the preview in the production environment, so not the designer.

Regards,
Jack Duijf

Hi Jack,

thank you for your post.

Please use LlViewerProhibitAction() to disable preview actions:

LL.Core.LlViewerProhibitAction(LlViewerAction.SaveAs)
LL.Core.LlViewerProhibitAction(LlViewerAction.Fax)
LL.Core.LlViewerProhibitAction(LlViewerAction.SendTo)
LL.Core.LlViewerProhibitAction(LlViewerAction.PrintPage)
LL.Core.LlViewerProhibitAction(LlViewerAction.PrintPagerange)

If you don’t use .NET, then please have a look at “menuid.txt” to get the menu IDs you need.

Best regards,

Christian Rauchfuß
Technical Support
combit GmbH

Hello Christian,

Thank you for the reply.
That did the trick.

#define LL_PREVIEW_ACTION_PRINTPAGE			112
#define LL_PREVIEW_ACTION_PRINTALLPAGES			113
#define LL_PREVIEW_ACTION_FAXALLPAGES			117
#define LL_PREVIEW_ACTION_SAVEAS			116
#define LL_PREVIEW_ACTION_SENDTO			115

LlViewerProhibitAction(::hJob,LL_PREVIEW_ACTION_PRINTPAGE)
LlViewerProhibitAction(::hJob,LL_PREVIEW_ACTION_PRINTALLPAGES)
LlViewerProhibitAction(::hJob,LL_PREVIEW_ACTION_FAXALLPAGES)
LlViewerProhibitAction(::hJob,LL_PREVIEW_ACTION_SAVEAS)
LlViewerProhibitAction(::hJob,LL_PREVIEW_ACTION_SENDTO)

Regards,
Jack Duijf