Hi Alessandro,

You can use the TextBuffer class. It is better using a printershare rather than LPT1:, as your application might hang if no connection to the printer.

static void Job7(Args _args)
{
    TextBuffer  textBuffer = new TextBuffer();
;
    textBuffer.appendText('line 1\n');
    textBuffer.appendText('line 2\n');
    textBuffer.appendText(num2char(12)); // form feed
    textBuffer.toFile('\\\\<computername>\\<printersharename>'); // or LPT1:
}

Best regards,
Steen Andreasen
http://www.steenandreasen.com/axaptabook.asp


Alessandro Ghidini <[EMAIL PROTECTED]> skrev:
Hi group.

            I have a barcode printer that i need to use without any driver,
i.e. i need to call the printer directly on that port like with the dos
command: type "text" > lpt1

Do you know any way for doing that? I read somewhere that a possible
solution could be using lpt1 like a file and writing on it opening just as a
file.. I can't try that solution today.. So.. Can anyone tell me if this
could be a right approach? Or is it possible to call the shell type command?



Thanks in advance,

            Alessandro



[Non-text portions of this message have been removed]






---------------------------------
YAHOO! GROUPS LINKS


    Visit your group "development-axapta" on the web.
 
    To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
 
    Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


---------------------------------




[Non-text portions of this message have been removed]





YAHOO! GROUPS LINKS




Reply via email to