E: Add Button for Print in work order structure window

In this example you create a right button for printing Work order over Print Macro from this window:

examplewindowaddbuttonprint

 

For this you must know which macro report you want to print

examplemacronumber

 

beasscript-logo-small

See Beas Script MacroPrint , Create Button

 

// we use the loaded event to initialize Buttons 
global function form_loaded
// Create button on right side. See Create 
create=button=name=MyPrint,text=Print,position=1
end global
 
// the Button has object name "myPrint". for this i register this event
global function dw_master_item_myprint_click
// in this case create only preview. More see MacroPrint
printobject=makrostart=preview=fert_stuktur_browse=1000
return true
end global

 

 

help-hinweis Example Notes