Printing a webpage (URL) from Axapta code

I try to make x++ code open a webpage and print it to the default printer without user interaction. I can open the page by executing WinApi::shellExecute(“iexplore.exe”, ). I know I should set the parameter str lpOperation to “Print” to print a file, but when trying to set the parameter str lpDirectory nothing seems to work. Blank directory works with .pdf and .doc documents, and probably many others, but when leaving the directory blank ("") the webpage will not print. I hope somebody knows the solution to my problem :slight_smile: