miércoles, 25 de junio de 2014

Para la elaboracion de aplicaciones

System.Environment.CurrentDirectory (Obtener la ruta de la Aplicacion)

lunes, 9 de junio de 2014

logo de la impresora fiscal

 public frmMainForm()
        {
            System.Threading.Thread.CurrentThread.CurrentUICulture = new CultureInfo(_myMainFormCtrl.MyUtil.CultureInfo);

           
            InitializeComponent();
           
            this._myServiDataProduct = new ServiceDataPlu();
            this._myServiDataFooter = new ServiceDataFoot();
            this._myServiDataHeader = new ServiceDataHead();
            this._myServiDataCountry = new ServiceDataCountry();
            this.QuantityLine = 1.00;
            this.AmountPayment = 0.00;
            this.TotalAmount = 0.00;
            this.TypeDocFiscal = 0;

            ///Nuevo
            //_myMainFormCtrl._myLogoInfo.MytbrBrightness = this.tbrBrightness;
            //_myMainFormCtrl._myLogoInfo.MytbrZoom = this.tbrZoom;
            _myMainFormCtrl._myLogo.tbrBrilloLogo = this.tbrBrightness;
            _myMainFormCtrl._myLogo.tbrZoomLogo = this.tbrZoom;
        }

sábado, 7 de junio de 2014

Operaciones con Combobox

String commandString = "SELECT descripcion from departamentos";
MySqlCommand command = new MySqlCommand(commandString, conexionBD.getConexion());
MySqlDataAdapter myAdapter = new MySqlDataAdapter(command);
DataSet myds = new DataSet();
myAdapter.Fill(myds, "plu");
dataGridView1.DataSource = myds.Tables["plu"].DefaultView;

//int tablas = myds.Tables[0].Rows.Count;
//comboBox1.DataSource = myds.Tables[0].Columns;


comboBox1.DataSource = myds.Tables["plu"].DefaultView;
comboBox1.DisplayMember = myds.Tables["plu"].Columns[0].ToString();


Investigar value commited combobox!! http://msdn.microsoft.com/en-us/library/ms753382(v=vs.85).aspx#combobox_styling

Cuando se intenta leer el valor de un combobox y no importa si el valor que este contiene se haya hecho commit, se puede utilizar el EditedFormattedValue para obtener dicho valor

jueves, 5 de junio de 2014

REviSAR EMULADOR VFP

Revisar PC
 C:\PrgramFile\Java\jre7\bin
si estan: rxtxSerial.dll y rxtxParaller.dll de la Java/jre7/bin/

Si estan esas dlls, consola
C:\VFPHKA2.0\dist>  java -jar VFPHKA.jar
Ver que se imprime por consola

Chequear tambien
C:\com0com