|  14.05.2012, 23:13 | #1 | 
| Участник | dax-lessons: Get list of printers in Dynamics AX 2012 for SSRS reports [Using X++] 
			
			Источник: http://dynamicsaxgyan.wordpress.com/...ports-using-x/ ============== Friends, Below code snippet will help to get the list of available printers in AX 2012. X++: static void SR_AvailablePrinters_SSRS(Args _args) { Microsoft.Dynamics.AX.Framework.Reporting.Shared.PrinterHelper printerHelper; System.Collections.ArrayList names; System.Collections.IEnumerator enumerator; str name; // BP Deviation documented printerHelper = new Microsoft.Dynamics.AX.Framework.Reporting.Shared.PrinterHelper(); names = printerHelper.get_PrinterNames(); if (names != null) { enumerator = names.GetEnumerator(); while (enumerator.MoveNext()) { name = enumerator.get_Current(); info(name); } } } Just wanted to show another way of getting the printers information in AX 2012 for SSRS printer destinations. X++: static void SR_2009AXPrinters(Args _args) { PrintJobSettings pjs; SysPrintOptions options = new SysPrintOptions(); int i; str printerName; ; pjs = new PrintJobSettings(); for (i = 1 ; i <= pjs.getNumberOfPrinters() ; i++) { printerName = pjs.getPrinter(i); pjs.deviceName(printerName); info(printerName); } } Источник: http://dynamicsaxgyan.wordpress.com/...ports-using-x/ 
				__________________ Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. Последний раз редактировалось Poleax; 16.05.2012 в 12:30. Причина: оформление | 
|  | |
| За это сообщение автора поблагодарили: Ganna (1). | |
|  | 
| 
 |