V
Vampir
Hi!
I'm writing application for printing to POS SP200 serial printer
and i'm using StarComm.dll component. The thing I wan't to make
is reading printer setting from file but here is problem:
StarComm SPPOS200 = new StarComm();
SPPOS200.Protocols = Enum.Parse(typeof(StarComm.Protocols), "SC_DirectSerial";
But that doesn't work... it throws me an error:
"Cannot implicitly convert type 'object' to 'StarComm.Protocols'"
How to avoid that? Does any body have experience with that StarComm component?
Thnx.
J.
I'm writing application for printing to POS SP200 serial printer
and i'm using StarComm.dll component. The thing I wan't to make
is reading printer setting from file but here is problem:
StarComm SPPOS200 = new StarComm();
SPPOS200.Protocols = Enum.Parse(typeof(StarComm.Protocols), "SC_DirectSerial";
But that doesn't work... it throws me an error:
"Cannot implicitly convert type 'object' to 'StarComm.Protocols'"
How to avoid that? Does any body have experience with that StarComm component?
Thnx.
J.