BufferedTextPrinter Reference
BufferedTextPrinter allows you to easily print text to
the printer.
Object syntax
Name |
Declaration |
Codepage |
Property Codepage As Long HRESULT Codepage([out, retval]
long *pVal);
HRESULT Codepage([in] long newVal); |
Description:
The codepage that the printer is expecting to receive. See
codepages page for explanation.
Default:
System default ANSI codepage.
Errors:
E_INVALIDARG - On negative codepage numbers. |
Port |
Property Port As String HRESULT Port([out, retval] BSTR *pVal);
HRESULT Port([in] BSTR newVal); |
Description:
The port that the printer is connected to. See
ports page for explanation.
Default:
LPT1.
Errors:
None. |
PrintBuffer |
Sub PrintBuffer() HRESULT PrintBuffer(); |
Description:
Send the current buffer to the printer.
Printing does not clear the buffer.
Errors:
See list of printing errors. |
ResetBuffer |
Sub ResetBuffer() HRESULT ResetBuffer(); |
Description:
Clear the buffer.
Errors:
None. |
Timeout |
Property Timeout As Long HRESULT Timeout([out, retval]
long *pVal);
HRESULT Timeout([in] long newVal); |
Description:
How long to wait (in milliseconds) for the printer to respond.
Default:
Two seconds (2000 milliseconds).
Errors:
E_INVALIDARG - On negative timeout values. |
Write |
Sub Write(Text As String) HRESULT Write([in]
BSTR Text); |
Description:
Add the value of parameter Text to the buffer.
Errors:
None. |
WriteNewline |
Sub WriteNewline() HRESULT WriteNewline(); |
Description:
Add a new-line sign to the buffer
Errors:
None. |
WritePageEnd |
Sub WritePageEnd() HRESULT WritePageEnd(); |
Description:
Add a page end sign to the buffer
Errors:
None. |
Copyright 2004 CodeBuildingBlocks
|