estotz
14th May 2003, 22:02
I must be brain dead today.
In our recent MS2000 installation we can only print files to the server. Any quick method on getting printed files to the clients C: Drive? Having the user enter in their complete path \\mycomputer\c$ in the device is not really acceptable.
Yes, we can print to Word, Notepad etc., but would prefer to print directly to an ascii file on the client.
Is there a BSE_OUT environment variable or something similar. Would a wrapper script be appropriate?
I assume there is something simple I am overlooking.
NPRao
14th May 2003, 22:28
You can use the tools function - server2client() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_client_file_access_server2client)
estotz
14th May 2003, 22:54
I was looking for a possible solution from the "ttstpsplopen" standard program session (select device).
I guess you're inferring I'll need to create a 3GL program and use that in the Device Data setup?
lbencic
15th May 2003, 01:28
Another option is to use the bwprint.
When printing to a printer, check the 'Preview' option. This will bring up the report to your screen instead, in the bwprint program. You can then use the fairly standard windows File drop down menu to print the report, or save it to your PC.
The major problem with that is they are saved in the '.bpf' format, and can only be read by bwprint, not a regular ASCII file. The users may have to install bwprint on their PC's. It comes with Baan.
Maybe someone here has come up with a conversion for that.....
Good luck.
estotz
15th May 2003, 15:13
Instead of the bwprint, it is still easier to print to a file device with path:
\\mycomputer\C$\whatever
although I'd like to make it easier on the users and simply print to their C drive (or whatever). Anyway to resolve an environment variable on the device setup of through the print session (ttstpsplopen)?
Using the server2client() function is a good idea, but I don't want to reinvent the wheel with writing a program. If anyone has an example of something similar to the ttstpconv, that would be swell.
Thanks
NPRao
15th May 2003, 19:44
Erik,
In that case you need to use - get.bw.hostname() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_system_and_user_information_get_bw_hostname) to get the computer name and assign it to the variable - spool.fileout variable in your calling program.
I hope this helps you out.