Now I want to write data to that LPT port as I would do with any other native LPT port using for example InpOut32.dll. If it is not possible to access the port on that way, how can I get access to the port to write/read raw data to it? Not to print a document but to write/read raw data to it as you would do with any parallel port.
I have neen doing it for several years now. I have seen three methods: 1 - MSCOMM 2 - Common Basic statements of OPEN, PRINT/WRITE, CLOSE and 3 - The method I use, API calls into the Kernel32. I am using Excel 97 and it will not run MSCOMM. Something about not being licenced or approved. I don't recall the exact wording of the message I got when trying to load the MSCOMM module.
I can send you workbooks that have methods 2 & 3. I have seen MSCOMM examples on the web as well. They may be large!! They send out the port to operate ham radios and are quite envolved, but you should be able to use the module.
My method has one module with very good comments and was written by someone who knew what he was doing.