I posted this in the classic forum yesterday but it turns out I'm actually using .net, so you guys might be able to help...

I'm trying to write a program which reads in a plain text file, adds a line to the top of it and then sends it to the printer. This line is a set of controls which the printer knows what to do with and it sets up the layout etc. of the paper.

First of all, the file is being produced no problems and comes out exactly right. I have already sucessfully completed a Java version which runs and works perfectly, and they create identical files so I know that that's not the problem... so it must be somewhere in the sending.

So, starting from scratch, how do you print in VB given that you have a filename "myFilename".

Incidentally, the line that I have to add is as follows (escape is char27):
escape + "E" + escape + "&l1H" + escape + "&l26a1O" + escape + "9" + escape + "&l0l6d12e36F" + escape + "(s0p10H" + escape + "&a3L"