I'm working with Nav2017, I want to automatically print the Excel file with the following code and get runtime error "processstartinfo cannot find file specified".
What's wrong ? Help? please !!!!!
Name DataType Subtype Length
ProcessStartInfo DotNet System.Diagnostics.ProcessStartInfo.'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
Process DotNet System.Diagnostics.Process.'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
ProcessWindowStyle DotNet System.Diagnostics.ProcessWindowStyle.'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
WindowStyle DotNet System.Diagnostics.ProcessWindowStyle.'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
FullPath Text
CreateNowWindow Boolean
Verb Text
FullPath :='c:\TEMP\1.xlsx'; //Filename;
ProcessStartInfo :=ProcessStartInfo.ProcessStartInfo(FullPath);
WITH ProcessStartInfo DO BEGIN
Verb :='Print';
CreateNowWindow :=TRUE;
WindowStyle:=ProcessWindowStyle.Hidden;
END;
Process.Start(ProcessStartInfo);
0
Answers
I hope this helps,
Please try and set the RunOnClient property on your variables and give it a go?
Thanks,