Kleyton Posted February 21, 2009 Report Share Posted February 21, 2009 Estou precisando utilizar a impressora não fiscal BEMATECH MP-20 MI, alguém tem exemplos de como utilizar a DLL, ou seja, as declarações da DLL? Kleyton xHarbour 99.5 Clipper5.2E+Clipper5.3b+Blink7+FW2.0d+Fwh 2.5 (xHarbour 0.99.3) cleitonbala@bol.com.br Quote Link to comment Share on other sites More sharing options...
Kleyton Posted February 21, 2009 Author Report Share Posted February 21, 2009 Estou precisando utilizar a impressora não fiscal BEMATECH MP-20 MI, alguém tem exemplos de como utilizar a DLL, ou seja, as declarações da DLL? Kleyton xHarbour 99.5 Clipper5.2E+Clipper5.3b+Blink7+FW2.0d+Fwh 2.5 (xHarbour 0.99.3) cleitonbala@bol.com.br Quote Link to comment Share on other sites More sharing options...
crisvam Posted February 21, 2009 Report Share Posted February 21, 2009 Olha de uma olhada: http://www.fivewin.com.br/forum/topic.asp?TOPIC_ID=5237 veja se serve Crisvam Quote Link to comment Share on other sites More sharing options...
Kleyton Posted February 22, 2009 Author Report Share Posted February 22, 2009 Crisvam, não é essa declaração é para a impressora não fiscal. Kleyton xHarbour 99.5 Clipper5.2E+Clipper5.3b+Blink7+FW2.0d+Fwh 2.5 (xHarbour 0.99.3) cleitonbala@bol.com.br Quote Link to comment Share on other sites More sharing options...
vailtom Posted February 22, 2009 Report Share Posted February 22, 2009 Se a impressora for paralela e NÃO FISCAL é só mandar imprimir na porta LPT1 normal... Quote Link to comment Share on other sites More sharing options...
crisvam Posted February 22, 2009 Report Share Posted February 22, 2009 citação:Crisvam, não é essa declaração é para a impressora não fiscal. Kleyton xHarbour 99.5 Clipper5.2E+Clipper5.3b+Blink7+FW2.0d+Fwh 2.5 (xHarbour 0.99.3) cleitonbala@bol.com.br id=quote>id=quote>Kleyton.... O critério para a declaração é o mesmo, apenas muda a dll, que de Bemafi32.dll, passa para MP2032.dll. Você pode baixar aqui: http://www.bematech.com.br/suporte/dwn_mini.asp Faolou... Crisvam Quote Link to comment Share on other sites More sharing options...
Kleyton Posted February 22, 2009 Author Report Share Posted February 22, 2009 Vailtom, essa da bematech é diferente, é paralela mas tem que declarar a DLL. Veja abaixo a declaração em delphi: ---------------------------------------------------------- function IniciaPorta( Porta: string ): integer; stdcall; far; eexternal 'MP2032.DLL'; function FechaPorta: integer; stdcall; far; external 'MP2032.DLL'; function BematechTX( BufTrans: string ): integer; stdcall; far; external 'MP2032.DLL'; function ComandoTX( BufTrans: string; TamBufTrans: integer ): integer; stdcall; far; external 'MP2032.DLL'; function CaracterGrafico( BufTrans: string; TamBufTrans: integer ): integer; stdcall; far; external 'MP2032.DLL'; function DocumentInserted: integer; stdcall; far; external 'MP2032.DLL'; function Le_Status: integer; stdcall; far; external 'MP2032.DLL'; function AutenticaDoc( texto: string; tempo: integer ): integer; stdcall; far; external 'MP2032.DLL'; function Le_Status_Gaveta: integer; stdcall; far; external 'MP2032.DLL'; function ConfiguraTamanhoExtrato( NumeroLinhas: Integer ): integer; stdcall; far; external 'MP2032.DLL'; function HabilitaExtratoLongo( Flag: Integer ): integer; stdcall; far; external 'MP2032.DLL'; function HabilitaEsperaImpressao( Flag: Integer ): integer; stdcall; far; external 'MP2032.DLL'; function EsperaImpressao: integer; stdcall; far; external 'MP2032.DLL'; function ConfiguraModeloImpressora( ModeloImpressora: integer ): integer; stdcall; far; external 'MP2032.DLL'; function AcionaGuilhotina( Modo: integer ): integer; stdcall; far; external 'MP2032.DLL'; function FormataTX (BufTras: string; TpoLtra: integer; Italic: integer; Sublin: integer; expand: integer; enfat: integer ): integer; stdcall; far; external 'MP2032.DLL'; function HabilitaPresenterRetratil( iFlag: integer ): integer; stdcall; far; external 'MP2032.DLL'; function ProgramaPresenterRetratil( iTempo: integer ): integer; stdcall; far; external 'MP2032.DLL'; function VerificaPapelPresenter: integer; stdcall; far; external 'MP2032.DLL'; // Função para Configuração dos Códigos de Barras function ConfiguraCodigoBarras( Altura: integer; Largura: integer; PosicaoCaracteres: integer; Fonte: integer; Margem: integer ): integer; stdcall; far; external 'MP2032.DLL'; // Funções para impressão dos códigos de barras function ImprimeCodigoBarrasUPCA( Codigo: string ): integer; stdcall; far; external 'MP2032.DLL'; function ImprimeCodigoBarrasUPCE( Codigo: string ): integer; stdcall; far; external 'MP2032.DLL'; function ImprimeCodigoBarrasEAN13( Codigo: string ): integer; stdcall; far; external 'MP2032.DLL'; function ImprimeCodigoBarrasEAN8( Codigo: string ): integer; stdcall; far; external 'MP2032.DLL'; function ImprimeCodigoBarrasCODE39( Codigo: string ): integer; stdcall; far; external 'MP2032.DLL'; function ImprimeCodigoBarrasCODE93( Codigo: string ): integer; stdcall; far; external 'MP2032.DLL'; function ImprimeCodigoBarrasCODE128( Codigo: string ): integer; stdcall; far; external 'MP2032.DLL'; function ImprimeCodigoBarrasITF( Codigo: string ): integer; stdcall; far; external 'MP2032.DLL'; function ImprimeCodigoBarrasCODABAR( Codigo: string ): integer; stdcall; far; external 'MP2032.DLL'; function ImprimeCodigoBarrasISBN( Codigo: string ): integer; stdcall; far; external 'MP2032.DLL'; function ImprimeCodigoBarrasMSI( Codigo: string ): integer; stdcall; far; external 'MP2032.DLL'; function ImprimeCodigoBarrasPLESSEY( Codigo: string ): integer; stdcall; far; external 'MP2032.DLL'; function ImprimeCodigoBarrasPDF417( NivelCorrecaoErros: integer; Altura: integer; Largura: integer; Colunas: integer; Codigo: string ): integer; stdcall; far; external 'MP2032.DLL'; // Funções para impressão de BitMap function ImprimeBitmap ( name: string; mode: integer): integer; stdcall; far; external 'MP2032.DLL'; function ImprimeBmpEspecial ( name: string; xScale: integer; yScale: integer; angle: integer): integer; stdcall; far; external 'MP2032.DLL'; function AjustaLarguraPapel ( width: integer): integer; stdcall; far; external 'MP2032.DLL'; function SelectDithering ( mode: integer): integer; stdcall; far; external 'MP2032.DLL'; function PrinterReset : integer; stdcall; far; external 'MP2032.DLL'; function LeituraStatusEstendido ( A: array of byte ): integer; stdcall; far; external 'MP2032.DLL'; function IoControl ( flag: Integer; mode : Boolean ): integer; stdcall; far; external 'MP2032.DLL'; Agora a declaração em Visual Basic: ---------------------------------------------------------- Public Declare Function IniciaPorta Lib "MP2032.DLL" (ByVal Porta As String) As Integer Public Declare Function BematechTX Lib "MP2032.DLL" (ByVal comando As String) As Integer Public Declare Function ComandoTX Lib "MP2032.DLL" (ByVal BufTrans As String, ByVal Flag As Integer) As Integer Public Declare Function CaracterGrafico Lib "MP2032.DLL" (ByVal BufTrans As String, ByVal TamBufTrans As Integer) As Integer Public Declare Function Le_Status Lib "MP2032.DLL" () As Integer Public Declare Function AutenticaDoc Lib "MP2032.DLL" (ByVal texto As String, ByVal tempo As Integer) As Integer Public Declare Function DocumentInserted Lib "MP2032.DLL" () As Integer Public Declare Function FechaPorta Lib "MP2032.DLL" () As Integer Public Declare Function Le_Status_Gaveta Lib "MP2032.DLL" () As Integer Public Declare Function ConfiguraTamanhoExtrato Lib "MP2032.DLL" (ByVal NumeroLinhas As Integer) As Integer Public Declare Function HabilitaExtratoLongo Lib "MP2032.DLL" (ByVal Flag As Integer) As Integer Public Declare Function HabilitaEsperaImpressao Lib "MP2032.DLL" (ByVal Flag As Integer) As Integer Public Declare Function EsperaImpressao Lib "MP2032.DLL" () As Integer Public Declare Function ConfiguraModeloImpressora Lib "MP2032.DLL" (ByVal ModeloImpressora As Integer) As Integer Public Declare Function AcionaGuilhotina Lib "MP2032.DLL" (ByVal Modo As Integer) As Integer Public Declare Function FormataTX Lib "MP2032.DLL" (ByVal BufTrans As String, ByVal TpoLtra As Integer, ByVal Italic As Integer, ByVal Sublin As Integer, ByVal Expand As Integer, ByVal Enfat As Integer) As Integer Public Declare Function HabilitaPresenterRetratil Lib "MP2032.DLL" (ByVal iFlag As Integer) As Integer Public Declare Function ProgramaPresenterRetratil Lib "MP2032.DLL" (ByVal iTempo As Integer) As Integer Public Declare Function VerificaPapelPresenter Lib "MP2032.DLL" () As Integer ' Função para Configuração dos Códigos de Barras Public Declare Function ConfiguraCodigoBarras Lib "MP2032.DLL" (ByVal Altura As Integer, ByVal Largura As Integer, ByVal PosicaoCaracteres As Integer, ByVal Fonte As Integer, ByVal Margem As Integer) As Integer ' Funções para impressão dos códigos de barras Public Declare Function ImprimeCodigoBarrasUPCA Lib "MP2032.DLL" (ByVal Codigo As String) As Integer Public Declare Function ImprimeCodigoBarrasUPCE Lib "MP2032.DLL" (ByVal Codigo As String) As Integer Public Declare Function ImprimeCodigoBarrasEAN13 Lib "MP2032.DLL" (ByVal Codigo As String) As Integer Public Declare Function ImprimeCodigoBarrasEAN8 Lib "MP2032.DLL" (ByVal Codigo As String) As Integer Public Declare Function ImprimeCodigoBarrasCODE39 Lib "MP2032.DLL" (ByVal Codigo As String) As Integer Public Declare Function ImprimeCodigoBarrasCODE93 Lib "MP2032.DLL" (ByVal Codigo As String) As Integer Public Declare Function ImprimeCodigoBarrasCODE128 Lib "MP2032.DLL" (ByVal Codigo As String) As Integer Public Declare Function ImprimeCodigoBarrasITF Lib "MP2032.DLL" (ByVal Codigo As String) As Integer Public Declare Function ImprimeCodigoBarrasCODABAR Lib "MP2032.DLL" (ByVal Codigo As String) As Integer Public Declare Function ImprimeCodigoBarrasISBN Lib "MP2032.DLL" (ByVal Codigo As String) As Integer Public Declare Function ImprimeCodigoBarrasMSI Lib "MP2032.DLL" (ByVal Codigo As String) As Integer Public Declare Function ImprimeCodigoBarrasPLESSEY Lib "MP2032.DLL" (ByVal Codigo As String) As Integer Public Declare Function ImprimeCodigoBarrasPDF417 Lib "MP2032.DLL" (ByVal NivelCorrecaoErros As Integer, ByVal Altura As Integer, ByVal Largura As Integer, ByVal Colunas As Integer, ByVal Codigo As String) As Integer ' Funções para impressão de BitMap Public Declare Function ImprimeBitmap Lib "MP2032.DLL" (ByVal Name As String, ByVal mode As Integer) As Integer Public Declare Function ImprimeBmpEspecial Lib "MP2032.DLL" (ByVal Name As String, ByVal xScale As Integer, ByVal yScale As Integer, ByVal angle As Integer) As Integer Public Declare Function AjustaLarguraPapel Lib "MP2032.DLL" (ByVal width As Integer) As Integer Public Declare Function SelectDithering Lib "MP2032.DLL" (ByVal type As Integer) As Integer Kleyton xHarbour 99.5 Clipper5.2E+Clipper5.3b+Blink7+FW2.0d+Fwh 2.5 (xHarbour 0.99.3) cleitonbala@bol.com.br Quote Link to comment Share on other sites More sharing options...
vailtom Posted February 22, 2009 Report Share Posted February 22, 2009 Tenho um PDV que usa destas impressoras em mercado e não tenho este problema. Vivendo e aprendendo... Quote Link to comment Share on other sites More sharing options...
personal Posted February 22, 2009 Report Share Posted February 22, 2009 Vailton, caixa frio da cana. Quote Link to comment Share on other sites More sharing options...
vailtom Posted February 23, 2009 Report Share Posted February 23, 2009 É pra "orçamento" só... hauahuahuahhaua! Quote Link to comment Share on other sites More sharing options...
Kleyton Posted February 23, 2009 Author Report Share Posted February 23, 2009 É pra restaurante, mandar os pedidos para a cozinha... Alguém pode me dar uma dica de como declarar DLL? Kleyton xHarbour 99.5 Clipper5.2E+Clipper5.3b+Blink7+FW2.0d+Fwh 2.5 (xHarbour 0.99.3) cleitonbala@bol.com.br Quote Link to comment Share on other sites More sharing options...
Kleyton Posted February 24, 2009 Author Report Share Posted February 24, 2009 . Kleyton xHarbour 99.5 Clipper5.2E+Clipper5.3b+Blink7+FW2.0d+Fwh 2.5 (xHarbour 0.99.3) cleitonbala@bol.com.br Quote Link to comment Share on other sites More sharing options...
personal Posted February 24, 2009 Report Share Posted February 24, 2009 Usei algo parecido, mas emloja de auto peças, usava uma Bematech, nao lembo o modelo, eu instalei na maquina, como generica, de compartilhei. A impressão eu utilizava apenas Chr(15) e funcionava a contento. Quote Link to comment Share on other sites More sharing options...
miragerr Posted February 24, 2009 Report Share Posted February 24, 2009 Ola amgigos Uso esta impressora normalmente com a TDOSPRN sem problemas Jackson Douglas Boa Vista FWH 8.08 Lamborguini ( isso voa gente ) PellesC+xH 1.1.0 email : miragerr@osite.com.br MSN : jackson_rl@hotmail.com SKYPE : jackson_rr Quote Link to comment Share on other sites More sharing options...
Kleyton Posted February 25, 2009 Author Report Share Posted February 25, 2009 Alguém pode me dar uma dica de como declarar a DLL citada acima, tem os exemplos em Delphi e Visual Basic? Kleyton xHarbour 99.5 Clipper5.2E+Clipper5.3b+Blink7+FW2.0d+Fwh 2.5 (xHarbour 0.99.3) cleitonbala@bol.com.br Quote Link to comment Share on other sites More sharing options...
elmoiqq Posted February 20, 2011 Report Share Posted February 20, 2011 KLEYTON veo qu tienes un programa para poder crear codigos de barra PDF417, necesito tu ayuda o algun ejemplo gracias Quote Link to comment Share on other sites More sharing options...
Geo_sts Posted February 21, 2011 Report Share Posted February 21, 2011 Bom dia Kleyton.. é como o Vailton falou vc não precisa de DLL para essas impressoras!! pode ser que exista. mas não há necessidade de fazer por ela.. pelo menos eu tenho cliente usando e não precisei fazer nada!.. instale em sua maquina a impressora Generc Text na porta LPT1 e manda uma Pg de teste.. se imprimir normal. vai ver q se vc mandar direto do seu programa usando tdosprn ou direto.. vai imprimir normal! flw Geovanni Holior Analista de Sistema Clip53 * FHW 9.1/../9.5 MySql skype:geovanni.holior " Tudu Posso naquele que me Fortalece!" Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.