Package com.jacob.com

Examples of com.jacob.com.Variant


  public Variant getActiveCommand() {
    return Dispatch.get(this, "ActiveCommand");
  }

  public void setStayInSync(boolean pb) {
    Dispatch.put(this, "StayInSync", new Variant(pb));
  }
View Full Code Here


    return Dispatch.get(this, "StayInSync").getBoolean();
  }

  public String GetString(int StringFormat, int NumRows,
      String ColumnDelimeter, String RowDelimeter, String NullExpr) {
    return Dispatch.call(this, "GetString", new Variant(StringFormat),
        new Variant(NumRows), ColumnDelimeter, RowDelimeter, NullExpr)
        .toString();
  }
View Full Code Here

  public String getDataMember() {
    return Dispatch.get(this, "DataMember").toString();
  }

  public void setDataMember(String pl) {
    Dispatch.put(this, "DataMember", new Variant(pl));
  }
View Full Code Here

        .getInt();
  }

  public Recordset Clone(int LockType) {
    return new Recordset(Dispatch
        .call(this, "Clone", new Variant(LockType)).toDispatch());
  }
View Full Code Here

    return new Recordset(Dispatch
        .call(this, "Clone", new Variant(LockType)).toDispatch());
  }

  public void Resync(int AffectRecords, int ResyncValues) {
    Dispatch.call(this, "Resync", new Variant(AffectRecords), new Variant(
        ResyncValues));
  }
View Full Code Here

    Dispatch.call(this, "Resync", new Variant(AffectRecords), new Variant(
        ResyncValues));
  }

  public void Seek(Variant KeyValues, int SeekOption) {
    Dispatch.call(this, "Seek", KeyValues, new Variant(SeekOption));
  }
View Full Code Here

  public void Seek(Variant KeyValues, int SeekOption) {
    Dispatch.call(this, "Seek", KeyValues, new Variant(SeekOption));
  }

  public void setIndex(String pl) {
    Dispatch.put(this, "Index", new Variant(pl));
  }
View Full Code Here

      Dispatch.put(a2, "Formula", "=A1*2");
      System.out.println("Retrieved a1 from excel:"
          + Dispatch.get(a1, "Value"));
      System.out.println("Retrieved a2 from excel:"
          + Dispatch.get(a2, "Value"));
      Variant f = new Variant(false);
      Dispatch.call(workbook, "Close", f);
      axc.invoke("Quit", new Variant[] {});

    } catch (ComException cfe) {
      cfe.printStackTrace();
View Full Code Here

    // paired with statement below that blows up
    ComThread.InitMTA();
    ActiveXComponent ie = new ActiveXComponent(
        "InternetExplorer.Application");
    try {
      Dispatch.put(ie, "Visible", new Variant(true));
      Dispatch.put(ie, "AddressBar", new Variant(true));
      System.out.println("IETestThread: " + Dispatch.get(ie, "Path"));
      Dispatch.put(ie, "StatusText", new Variant("My Status Text"));

      System.out.println("IETestThread: About to hookup event listener");
      IEEvents ieE = new IEEvents();
      new DispatchEvents(ie, ieE, "InternetExplorer.Application.1");
      System.out.println("IETestThread: Did hookup event listener");
      // / why is this here? Was there some other code here in the past?
      Variant optional = new Variant();
      optional.putNoParam();

      System.out
          .println("IETestThread: About to call navigate to sourceforge");
      Dispatch.call(ie, "Navigate", new Variant(
          "http://sourceforge.net/projects/jacob-project"));
      System.out
          .println("IETestThread: Did call navigate to sourceforge");
      try {
        Thread.sleep(delay);
      } catch (Exception e) {
      }
      System.out.println("IETestThread: About to call navigate to yahoo");
      Dispatch.call(ie, "Navigate", new Variant(
          "http://groups.yahoo.com/group/jacob-project"));
      System.out.println("IETestThread: Did call navigate to yahoo");
      try {
        Thread.sleep(delay);
      } catch (Exception e) {
View Full Code Here

    // paired with statement below that blows up
    ComThread.InitMTA();
    ActiveXComponent ie = new ActiveXComponent(
        "InternetExplorer.Application");
    try {
      Dispatch.put(ie, "Visible", new Variant(true));
      Dispatch.put(ie, "AddressBar", new Variant(true));
      System.out.println("IETestActiveProxyThread: "
          + Dispatch.get(ie, "Path"));
      Dispatch.put(ie, "StatusText", new Variant("My Status Text"));

      System.out
          .println("IETestActiveProxyThread: About to hookup event listener");
      IEEventsActiveProxy ieE = new IEEventsActiveProxy();
      new ActiveXDispatchEvents(ie, ieE, "InternetExplorer.Application.1");
      System.out
          .println("IETestActiveProxyThread: Did hookup event listener");
      // / why is this here? Was there some other code here in the past?
      Variant optional = new Variant();
      optional.putNoParam();

      System.out
          .println("IETestActiveProxyThread: About to call navigate to sourceforge");
      Dispatch.call(ie, "Navigate", new Variant(
          "http://sourceforge.net/projects/jacob-project"));
      System.out
          .println("IETestActiveProxyThread: Did call navigate to sourceforge");
      try {
        Thread.sleep(delay);
      } catch (Exception e) {
      }
      System.out
          .println("IETestActiveProxyThread: About to call navigate to yahoo");
      Dispatch.call(ie, "Navigate", new Variant(
          "http://groups.yahoo.com/group/jacob-project"));
      System.out
          .println("IETestActiveProxyThread: Did call navigate to yahoo");
      try {
        Thread.sleep(delay);
View Full Code Here

TOP

Related Classes of com.jacob.com.Variant

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.