954,529 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Sending Text to a pole display

Hello All,

I have been trying to send data to a pole display i.e. DigiPos WD202,

I am trying to use the following code but nothing appears on the display

Procedure CSPortWrite(PortID, PortData : string);
var
f: THandle;
NumberWritten : dword;
begin
NumberWritten := 0;
//assigns the stream to the printer port LPT1
f := CreateFile(PChar(PortID),GENERIC_WRITE,0,nil,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,0);
//write to printer
{-$1} writefile(f, PChar(PortData)^,Length(PortData),NumberWritten,nil) {+1$};
CloseHandle(f);
End;

and calling then CSPortwWrite()

CSPortWrite(PortID, trim(Frm_FMMain.EdSalesAmount.Text));

Please assist.

Eli_Njiraini
Newbie Poster
11 posts since Feb 2010
Reputation Points: 10
Solved Threads: 0
 

Got the solution, which is getting a TComm Component which I used to send the control characters together with the text to be displayed.

Eli_Njiraini
Newbie Poster
11 posts since Feb 2010
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You