Help! StarSP200 printing component

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Vampir

    Help! StarSP200 printing component

    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.Protoc ols = Enum.Parse(type of(StarComm.Pro tocols), "SC_DirectSeria l";

    But that doesn't work... it throws me an error:
    "Cannot implicitly convert type 'object' to 'StarComm.Proto cols'"

    How to avoid that? Does any body have experience with that StarComm component?


    Thnx.

    J.
  • Ignacio Machin ( .NET/ C# MVP )

    #2
    Re: Help! StarSP200 printing component

    On Jul 15, 7:57 am, Vampir <jp_...@VAMPIRn et.hrwrote:
    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.Protoc ols = Enum.Parse(type of(StarComm.Pro tocols), "SC_DirectSeria l";
    >
    But that doesn't work... it throws me an error:
    "Cannot implicitly convert type 'object' to 'StarComm.Proto cols'"
    >
    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?

    Comment

    • Vampir

      #3
      Re: Help! StarSP200 printing component

      Ignacio Machin ( .NET/ C# MVP ) wrote:
      >
      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.Protoc ols = (StarComm.Protc ols)Enum.Parse( typeof(StarComm .Protocols), "SC_DirectSeria l";

      Comment

      Working...