Same layout printed on differents printers
Christophe Vuignier
Hello,If the user print (for ex) an order directly, it must be printed on a small printer. But if he prints from a selectgrid (massive prints), it must be rediriged on a larger printer.
I know how to make that if I use two layouts (clone), but how can I make that on the same layout ?
The PrintDef is not the same (one for one order, and another one for SelectGrid).
I precise that the SelectGrid is "order" form type, accordly to my last post on the same subject.
Thank you in advance..
Chris.
PS : If I change the whole template by using ObjType in place of FormType, does it work ? Does the printer flag work also with these changes ?
With that, I can change the SelectGrid's FormType from Order to MySelectGrid and use it in the Layout to choose the right printer.
Philipp Knecht
Hi ChrisI strongly suggest to use FormType not ObjectType.
Now for the Printing you hav several options.
If you have two different Printdefs just enter for example A to the FreeText Column in the firsr Printdef and B in the FreeText Column of the second one.
Or you can write '[%BatchPrint]' to the FreeText and then distinguish between "Y" for Yes meaning its a massive Print or "N".
The in the Layoutdefinition you can distungiush by using A and B in the Printer Tab.
hth
Christophe Vuignier
Thank you, it works very well !
0
Please sign in to leave a comment.
Comments
0 comments