Help! StarSP200 printing component

  • Thread starter Thread starter Vampir
  • Start date Start date
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.
 
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.

hi

have you try starcomm website?
is StarComm.dll a managed dll or a win 32 dll?
 
Ignacio said:
hi

have you try starcomm website?
is StarComm.dll a managed dll or a win 32 dll?

The problem is solved. It must be:

SPPOS200.Protocols = (StarComm.Protcols)Enum.Parse(typeof(StarComm.Protocols), "SC_DirectSerial";
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top