Home Page
Articoli
Tips & Tricks
News
Forum
Archivio Forum
Blogs
Sondaggi
Rss
Video
Utenti
Chi Siamo
Contattaci
Username:
Password:
Login
Registrati ora!
Recupera Password
Home Page
Stanze Forum
App. WinForms / WPF .NET
Problema con ocx
martedì 27 maggio 2008 - 16.18
Elenco Threads
Stanze Forum
Aggiungi ai Preferiti
Cerca nel forum
pasqualimassimo
Profilo
| Junior Member
50
messaggi | Data Invio:
mar 27 mag 2008 - 16:18
il problema mio è il seguente, devo utilizzare un ocx della Epson per una stampante FP90 fiscale, lo importo nel progetto, ma quando lo istanzio mi dice che i metodi non sono accessibili, credo sia fatto in VB o in c, io avevo pensato di creare una classe definendola pubblica e di fargli ereditare le proprietà e metodi dell'ocx che ne pensate?
pasqualimassimo
Profilo
| Junior Member
50
messaggi | Data Invio:
mar 27 mag 2008 - 16:40
nulla ho provato anche a farglila ereditare ma nulla guardate che errore
error C3767: 'EpsonFP2::EpsonFPControlClass::EpsonFPControlClass': candidate function(s) not accessible
assiolle
Profilo
| Junior Member
88
messaggi | Data Invio:
mar 27 mag 2008 - 16:46
Credo che l'unica soluzione sia sentire la Epson....
Alessio
http://blogs.dotnethell.it/alessiop
Brainkiller
Profilo
| Guru
7.999
messaggi | Data Invio:
mar 27 mag 2008 - 17:02
>sia fatto in VB o in c, io avevo pensato di creare una classe
>definendola pubblica e di fargli ereditare le proprietà e metodi
>dell'ocx che ne pensate?
Mh non penso che ciò sia possibile.
E' strano però che non funzioni. Bisognerebbe vedere il codice sorgente dell'OCX (cosa non possibile naturalmente). Ma l'OCX ha anche qualche funzionalità visiva cioè a Design Time ? Cioè appare come un controllo qualsiasi Button, TextBox oppure contiene solo delle funzionalità come fosse una DLL ?
Hai già provato a sentire Epson se offre assistenza su questo o se c'è un'area per Developers sul loro sito riguardo questi prodotti ?
Ciao
David De Giacomi | Microsoft MVP
http://blogs.dotnethell.it/david/
pasqualimassimo
Profilo
| Junior Member
50
messaggi | Data Invio:
mar 27 mag 2008 - 18:11
ha delle funzionalità, metodi
Public Function opAlzoCarta(ByVal CodOpr As Integer, ByVal TipoCarta As Integer) As Integer
Function INVIO COMANDO ALZOCARTA (SEND PAPER FEED COMMAND) Code 1 148
* PARAMETERS
o IN: CodOpr - Operator Code (Integer) [1-12]
o IN: TipoCarta - Receipt, Journal or Receipt+Journal ( (DEVE assumere rispettivamente i valori delle costanti EPS_SCONTRINO o EPS_GIORNALE o EPS_SCONTRINO_GIORNALE )
* RETURNED VALUES
o OP_OK Result OK
o OP_ERR_OCXBUSY Ocx busy
o OP_ERR_NOCOLL Fiscal printer non connected
o OP_ERR_ACKTIMEOUT Timeout used to wait the ACK from the printer
o OP_ERR_STXTIMEOUT Timeout used to wait the reply from the printer
o OP_ERR_TIMEOUT Timeout used to wait the complete execution of the method
o OP_ERR_CHKS Checksum error
o OP_ERR_PORTCLOSE COM PORT close
o OP_ERR_EUROLOCK Property EuroSettings not correctly set
o EERR Error of fiscal printer
It is possible to check the details of the error reading the following property LastEERR
* PROPERTIES SET
o LastOPCode - Command Code - (Integer)
o OCXBusy - Set BUSY at the beginning, at the end of the method it is set to FALSE
o LastTimeoutACK - provide the value of the timeout set to wait the ACK from the printer in the previous method
o LastTimeoutOP - Provide the value of the timeout set to wait the execution of the previous method.
o LastOP - Operator Code (Integer) [1-12]
* EVENT RISEN
o In case the returned value is not OP_OK the following event is risen FPError
quando definisco l'oggetto esempio EpsonFPControlClass^ fp90; facendo fp90->.... rieco a vedere i metodi, solo che quando instanzionio l'oggetto non mi ci fa accedere
pokotho
Profilo
| Newbie
1
messaggi | Data Invio:
gio 24 lug 2008 - 16:32
Qualcuno è riuscito a far dialogare la FP90 tramite VBscript?
Devo fare stampare qualcosa tipo:
- Stampa "CIAO"
- Taglia carta
Quindi niente di difficile (spero) ma non so da che parte cominciare e qualsiasi aiuto sarà ben gradito.
La FP90 è configurata correttamente (il programmino di test funziona correttamente).
Grazie
Marco
Torna su
Stanze Forum
Elenco Threads
Partecipa anche tu! Registrati!
Hai bisogno di aiuto ?
Perchè non ti registri subito?
Dopo esserti registrato potrai chiedere
aiuto sul nostro
Forum
oppure aiutare gli altri
Consulta le
Stanze
disponibili.
Registrati ora !