[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.axapta.programming

Axapta and Label printer

Gofer

1/11/2006 1:29:00 PM

Hello.

I would like to rpint labels from Axapta on label printer. I know that I
must create text file and then send it to a printer that is connected to
RS232 port. So there is my question. How can I send same file to a RS232 port
from Axapta. Mayby there is another way to print on this printer. I know that
I can use windows driver's for printer , but this not satisfy my.

Could you have any sugesstion ?

Best regards
Gofer
1 Answer

Simon Agerbo

1/11/2006 1:56:00 PM

0

Hi Gofer

you could try to create the textfile in a textbuffer in axapta, an then
print it to the COM or LPT port.

something like this.

Textbuffer textBuf = new TextBuffer();

textbuf.appendText("Here you can");
textbuf.appendText("enter the values");
textbuf.appendText("from your textfile");

//print to COM2 Port
textbuf.toFile('com2:'); //I asume that this will work

//print to LPT1 port
textbuf.toFile('lpt1:'); //this works

regards

Simon Agerbo

"Gofer" wrote:

> Hello.
>
> I would like to rpint labels from Axapta on label printer. I know that I
> must create text file and then send it to a printer that is connected to
> RS232 port. So there is my question. How can I send same file to a RS232 port
> from Axapta. Mayby there is another way to print on this printer. I know that
> I can use windows driver's for printer , but this not satisfy my.
>
> Could you have any sugesstion ?
>
> Best regards
> Gofer