pitfloner
4th January 2005, 17:52
Hello all,

I need to add a new device in my BaaN that creates automatically an ASCII file with the following parameters:

Number of company
Report Id
All filter parameters of selection screen of a printing session.

When a user chooses this new device, e.g. ASCI_EX, BaaN has to create this file into a directory in user computer, like c:\ASCI_EX_DATA.txt.

Does anyone know the way to do it?

Thanks in advance


Joan Sanchez

pitfloner
4th January 2005, 18:18
The reason of creating this new device is because we are developed a report server in Visual Basic.

The main operation is:

1. User fill in the selection screen of printing session.
2. User select the device that create a new request in his/her computer.
3. An application that runs on his/her computer, read the request and sends it to the server.
4. The server read the request and makes the report according to the parameters of the request.
5. The server move the PDF on computer client.
6. The same application that has copied the request in the server, opens/prints the PDF.

I read some threads about BaaN devices, and I have some doubts about the way how to execute the script specified on ttaad300.prog field (BaaN 4GL Program) and if it is the best way of doing the second step.

One more time, thanks in advance.

Joan Sáncez

mark_h
4th January 2005, 18:32
Check out this example (http://www.baanboard.com/baanboard/showthread.php?t=513) in the code and utilities program. It explains how to create your own version of ttstpconv. Just do a search of ttstpconv on the board and you should get more info than needed.

Mark