I have three different apps that I need to run as a service.
Two of them work perfectly. The third however will not function correctly.
The first two simply grab data from a text file and insert the data into a dbf.
The third app is trying to create a PDF using the built-in FWH Report (Report oReport.....)
Has anyone ever tried doing something like this and had success ?
The app works perfectly if run as a regular program.
I've even tried running the app as a service via AlwaysUp and FireDeamon but no luck.
I added some logging info in my app and it looks like it never gets to the function "AddData()"
When run as a regular program my log file shows:
03/24/17 09:13:05*******CertusReports Started*****
03/24/17 09:13:05 Initial Timer Started
03/24/17 09:13:10 Function GenReport: Processing: 20170324085918677.txt
03/24/17 09:13:10 Function GenReport: Option: Date Confirmed, Site: ALL, From: 20170222, To: 20170324, RepFile: 20170324085918677.pdf
03/24/17 09:13:10 Function DoReport called
03/24/17 09:13:11 Function AddData called
03/24/17 09:13:14 *** Report Generated ***
When run as a service my log file shows:
03/24/17 09:11:33*******CertusReports Started*****
03/24/17 09:11:33 Initial Timer Started
03/24/17 09:11:38 Function GenReport: Processing: 20170324085918677.txt
03/24/17 09:11:38 Function GenReport: Option: Date Confirmed, Site: ALL, From: 20170222, To: 20170324, RepFile: 20170324085918677.pdf
03/24/17 09:11:38 Function DoReport called
Any ideas??
[code=fw:209k9d7k][/code:209k9d7k]
↧