on 09-23-2022 1:31 PM
I am using SAP B1 9.2. I am calling an exe , but it is giving error as,
Sales_Report has stopped working.
If I run the exe independently, then it executes. But it gives problem when executed through addon.
This is my code,
Private Sub ExecuteFile()
Dim objReport As New Process()
Try
objReport.StartInfo.FileName = "C:\MMCPL Data\Addons\Parameter\Sales_Report.exe"
objReport.StartInfo.UseShellExecute = True
objReport.StartInfo.RedirectStandardOutput = False
objReport.Start()
Catch ex As Exception
WriteLog(SBO_Application.Company.ServerDate & ":" & SBO_Application.Company.ServerTime & ":" & "ExecuteFile()=" & ex.Message & vbNewLine & "Line=" & ex.StackTrace)
End Try
End Sub
User | Count |
---|---|
87 | |
9 | |
8 | |
7 | |
6 | |
3 | |
3 | |
3 | |
2 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.