foster
21st November 2002, 12:56
Hi!
Can anybody help me in following situation:
We have installed Baan IV C4 on a Windows NT 4.0 Server. Also activ is the portingset 6.1c.06.05. The Job-Daemon is enabled and the service for the Job-Daemon is started by the "System Account". Now, if a Job is started and the session includes an output to a printer there cames always the Message "There is currently no valid printer in your printer setup". But there is a valid printer in the printer setup. Now we must klick to "OK" Button and the job ends normaly. "Baan Support" told us, that the Job-Daemon-Service must start by the user "baan". If we do that and start the service, the start procedure hangs for this service hangs up.
Kind Regards,
Foster
Darren Phillips
21st November 2002, 13:49
You should be able to start it with baan account so this needs to investigated but as work around I had this problem printing from a system account with a program on NT before. In the end I remember exporting the printer subkey from the local user section of the registy HKEY_CURRENT_USER\printer edited the exported file so that it could be imported to HKEY_USERS\.DEFAULT by changing HKEY_CURRENT_USER to HKEY_USERS\.DEFAULT in the file.
foster
21st November 2002, 14:33
Thanks for your opinion! I have exported the Registry-Key and edited it. But after the import the error cames again. Do we need a reboot?
Darren Phillips
21st November 2002, 15:25
sorry not the correct registry keys from memory, I have found the correct information.
where it says to start and stop the schedule service substitute Baan jobdaemon service
To ensure successful printing from a scheduled application, complete the following procedure:
Open Control Panel, click the Services icon, and from the list of available services, select the Schedule service. Then click the Startup button and verify that this service is configured to log on as the System account and that it is allowed to interact with the desktop.
NOTE: For a scheduled application to print correctly, and for these instructions to produce successful results, you must use the System account for the service (Log On As) account.
When you have verified the above settings, click the OK button, and from the Services window click the Stop button (with the Schedule service selected), if the Stop button is available. This ensures that the changes take effect the next time you start the Schedule service.
In Print Manager, create a local printer--regardless of whether the printer is actually a local printer or a remote network printer--by choosing Create Printer from the Printer menu, using the printer driver appropriate for the type of printer you are using. Configure the printer to print to LPT1, and set it as the default printer.
Start and maximize Registry Editor (Regedt32.exe).
WARNING: Using Registry Editor incorrectly can cause serious, system- wide problems that may require you to reinstall Windows NT to correct them. Microsoft cannot guarantee that any problems resulting from the use of Registry Editor can be solved. Use this tool at your own risk.
Minimize the windows titled "HKEY_LOCAL_MACHINE on Local Machine" and "HKEY_CLASSES_ROOT on Local Machine" and position the remaining two windows, titled "HKEY_CURRENT_USER on Local Machine" and "HKEY_USERS on Local Machine," such that they are tiled vertically on the screen with each filling about one half of the available window space in Registry Editor. This step is provided for convenience in completing the remaining steps, in which you will review and edit certain registry keys.
Select the key
HKEY_CURRENT_USER \Software\Microsoft\Windows NT\Current Version\Devices
and note the information for the value of the key that represents the default printer created in step 2 above (for example, "LocalPrinter : REG_SZ : winspool,LPT1:").
Select the key
HKEY_USERS \.DEFAULT\Software\Microsoft\Windows NT\Current Version\Devices
and choose Add Value from the Edit menu to create the same value you noted in step 4 (using the above example, "LocalPrinter" is the value name, "REG_SZ" is the data type, and "winspool,LPT1:" is the string).
Select the key
HKEY_CURRENT_USER \Software\Microsoft\Windows NT\Current Version\PrinterPorts
and note the information for the value of the key that represents the default printer created in step 2 above (for example, "LocalPrinter : REG_SZ : winspool,LPT1:,14,45").
Select the key
HKEY_USERS \.DEFAULT\Software\Microsoft\Windows NT\Current Version \PrinterPorts
and choose Add Value from the Edit menu to create the same value you noted in step 6 (in the example from step 6, "LocalPrinter" is the value name, "REG_SZ" is the data type, and "winspool,LPT1:,14,45" is the string).
Select the key
HKEY_CURRENT_USER \Software\Microsoft\Windows NT\Current Version\Windows
and note the information for the device value of the key (for example, "LocalPrinter,winspool,LPT1:").
Double-click the device value of the key
HKEY_USERS \.DEFAULT\Software\Microsoft\Windows NT\Current Version\Windows
and edit it to reflect the same information you noted in step 8 (in the example from step 8, you would enter "LocalPrinter,winspool,LPT1:" for the string).
Close Registry Editor.
Open Control Panel, click the Services icon, and from the list of available services, select the Schedule service. Click the Start button to start the Schedule service with the above settings changes in effect.
foster
21st November 2002, 16:15
I am very glad! It works! Thanks you a lot for your help
Kind Regards,
Foster