Quantcast
Channel: NAV Three Tier — mibuso.com
Viewing all articles
Browse latest Browse all 10032

Print file - processstartinfo cannot find file specified

$
0
0
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);

Viewing all articles
Browse latest Browse all 10032

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>