malutz
15th September 2004, 09:36
Hej,
I am trying to write an interface between baan and an odd type of inkjet printer. This printer can only be accessed via the COM-Port.
Is there a function to send a datastream to the COM-Port as well as reading information from a COM-Port in Baan?
I searched in the programmers help but so far I had no luck.
:confused:
malutz
16th September 2004, 09:12
Hej,
Would the sock-function be a possibility? Has anyone used them before? :confused:
malutz
21st September 2004, 11:41
I tried the sock-Functions now. Sadly without any success.
Doesn't anyone have a idea on how to connect and send data to a COM-Port out of Baan?
:confused: :( :(
csecgn
21st September 2004, 12:18
Just an idea: If you just want to send data to the printer and don't need a reply, write your stream to a file and send the file with a script and the lp -d ... command to the printer. I've used this way successfully with some "special" printers (Zebra, Eltron)
regards
csecgn
malutz
21st September 2004, 13:03
Sadly I do need a reply from the printer. Plus it is in a Windows environment, but thx anyway.
csecgn
21st September 2004, 13:23
Does the communication work with Windows and for example a VB-Script? If you cannot find a direct way, maybe it would be possible to do the printing/communication with a VB-Script and send the answer back to Baan? Not a beautifull way, I know.
csecgn
malutz
21st September 2004, 13:33
Hej,
that is excatly that way we solved it now, but have to customize the script since a new printer model was launched.
Therefore we would like to start the communication directly in Baan, in that way we would have one "interface" less.