shellProcess:=shellProcess.Process(); shellProcess.StartInfo.FileName:='D:\Test\Test.pdf'; shellProcess.StartInfo.CreateNoWindow:= TRUE; shellProcess.StartInfo.WindowStyle:= windowStyles.Hidden; shellProcess.StartInfo.Verb:= 'print'; shellProcess.Start();
[b]shellProcess [/b]DotNet System.Diagnostics.Process.'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' [b]windowStyles [/b]DotNet System.Diagnostics.ProcessWindowStyle.'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
Comments
My guess is the file is located on the client.
Senior NAV Developer
Elbek & Vejrup
To get widowsStyles.Hidden property first you have to declare a Dotnet variable that refers [System.Diagnostics.ProcessWindowStyle.... The following are the steps:-
1. Create a DotNet Variable e.g. windowStyles
2. Click the Assist Edit button in sub type
3. Find System from the .net Assembely
4. Select System.Diagnostics.ProcessWindowStyle
If you mean System.Diagnostics.ProcessWindowStyle is not available in your PC, I guess it could be a problem in your .net Framework.
That's what I did, I don't have the .Hidden:
'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.Diagnostics.ProcessWindowStyle
IM using 2009, maybe that is the clue?
CEO, Spare Brained Ideas, Göteborg, Sweden
New (April 2021) Getting Started with Microsoft Dynamics 365 Business Central Book Available: "Your First 20 Hours with Business Central"