Hi all,
I am trying to open an excel application/workbook from X++, But the problem is that the excel does not open as the active/front window. Instead it remain on the background and just blinks on the task bar.
Below is the code I am using. I have removed all the cell writing code to just make it simpler. I do a lot of cell writing and then I open the excel.
I want the excel when opening to open as the front/active window and be the first visible window above Dynamics AX window.
IF you look at "Export to excel" feature in Dynamics AX forms (available on every form) then it opens as the active window and on opening remains on top of the Dynamics AX window. That is exactly what I want my users to have experience of.
My code :
static void Job3(Args _args)
{
SysExcelApplication application;
SysExcelWorkbooks workbooks;
SysExcelWorkbook workbook;
;
application = SysExcelApplication::construct();
workbooks = application.workbooks();
workbook = workbooks.add();
application.visible(true);
}
- Girija
*This post is locked for comments
I have the same question (0)