Summary: The StarComm.NET project is a .NET version of the StarComm project
above. The project consists of a class library (WLStarComm.dll) and control
library (StarComm.dll) and a document explaining it's usage.
Note: For information on programming samples for StarComm.NET, please click here.
Operating System: Windows (All Versions)
Programming Language: Visual Basic.NET, C#.NET, J#.NET, Managed C++
In general, writing code for StarComm.NET would work very similarly to writing
code for StarComm.
The syntax is slightly different depending on what language you're using, but
the arguments and methods
used should be identical. For example, to print red text to a two color capable
printer in StarComm,
the syntax is as follows:
[Visual Basic 6]
' Enable two color mode
StarComm1.StarComm_Output Chr(&H1B) & Chr(&H1E) & Chr(&H43) & Chr(&H31)
' Set the color to red
StarComm1.StarComm_Output Chr(&H1B) & Chr(&H1E) & Chr(&H63) & Chr(&H31)
While in the .NET languages, the syntax looks like this:
[C#]
// Enable two color mode
StarComm1.StarComm_Output("\x1B" + "\x1E" + "\x43" + "\x31");
// Set the color to red
StarComm1.StarComm_Output("\x1B" + "\x1E" + "\x63" + "\x31");
[Visual Basic.NET]
' Enable two color mode
StarComm1.StarComm_Output Chr(&H1B) & Chr(&H1E) & Chr(&H43) & Chr(&H31)
' Set the color to red
StarComm1.StarComm_Output Chr(&H1B) & Chr(&H1E) & Chr(&H63) & Chr(&H31)
For additional
help with in-house applications that will print to Star printers
in the languages Visual Basic 6, Visual Basic.NET, C#, C++, C, or Java please
contact: