Jump to content

imprimir impresora fiscal


Recommended Posts

saludos bueno tengo un drama tengo un sistema que lleva tiempo en la empresa y la cosa que como el sistema es antiguo no puedo ocuparlo en pcs nuevas ya que las impresoras fiscales estan en puerto serial, y si instalo un pc nuevo con un puerto serial mi programa no lo reconoce, dentro de mis configuracion del sistema tengo lo siguiente

<OBJECT ID="CPrint"
CLASSID="CLSID:43DDA42D-E710-4D4F-A270-CF70AE924E9C"
CODEBASE="Cprint.CAB#version=1,0,0,1">
</OBJECT>
<OBJECT ID="clsImprimirBF"
CLASSID="CLSID:F04E64BD-C212-431C-9E3E-4B67B6877CD7"
CODEBASE="ImprimirBF.CAB#version=1,0,0,3">
</OBJECT>
if($tipoComp == 1){//imprimo IF
echo "<script language=\"JavaScript\" type=\"text/JavaScript\">
$(document).ready(function() {									
alert(\"Pago Terminado.\");
xajax_ImprimirBF('" . base64_encode($id) . "', '" . base64_encode($id1) . "', '" . base64_encode($id3) . "');
}
 );
</script>";
}

la cosa que tambien el sistema cuenta con una dll de impresion nose si sera por eso ya que el codigo fuente yo ya no lo manejo ya que cuando el antiguo programador se fue se lo llevo junto con el, xD.si alguien tiene una idea de que puede estar pasando.

 

en mi servidor el programa crea el archivo .imp que estan en carpetas compartidas y mis impresoras fiscales que etan como cliente las leen e imprimen el documento bueno mi sistema esta en php =) bueno cualquier consejo se agradece gracias :D

 

 

pude abir el dll para imprimir pero solo tengo esto alguien me ayuda xD

//Version: 38.0
PrintWeb;
GUID = {B4C4DEEA-F758-4C36-BAA8-751E19F09FB0};

Dispatch _CPrint;
GUID = {A310D502-1A69-496F-BA15-8F1AC1BBB260};
  function QueryInterface(riid: ^GUID; out ppvObj: ^^VOID); stdcall;
  function AddRef: UI4; stdcall;
  function Release: UI4; stdcall;
  function GetTypeInfoCount(out pctinfo: ^UINT); stdcall;
  function GetTypeInfo(itinfo: UINT; lcid: UI4; out pptinfo: ^^VOID); stdcall;
  function GetIDsOfNames(riid: ^GUID; rgszNames: ^^I1; cNames: UINT; lcid: UI4; out rgdispid: ^I4); stdcall;
  function Invoke(dispidMember: I4; riid: ^GUID; lcid: UI4; wFlags: UI2; pdispparams: ^DISPPARAMS; out pvarResult: ^Variant; out pexcepinfo: ^EXCEPINFO; out puArgErr: ^UINT); stdcall;
  property-get obtenerEstado: I2;
  property-put nombreFile(BSTR);
  property-get nombreFile: BSTR;
  function OpenPort(out Puerto: ^BSTR): I2; stdcall;
  function ClosePort; stdcall;
  function Reset; stdcall;
  function PaperSize(out TamañoEnPulgadas: ^R4); stdcall;
  function FormFeed; stdcall;
  function CR; stdcall;
  function LF; stdcall;
  function CRLF; stdcall;
  function ProportionalMode(out ModoProporcional: ^Bool); stdcall;
  function DoubleWidth(out DobleAncho: ^Bool); stdcall;
  function DoubleHeight(out DobleAlto: ^Bool); stdcall;
  function Bold(out ModoBold: ^Bool); stdcall;
  function BidirectionalPrint(out BiDirPrint: ^Bool); stdcall;
  function LPP(out Lpi: ^R4); stdcall;
  function CPI(out ncpi: ^R4); stdcall;
  function PrintData(out Dato: ^BSTR); stdcall;
  function PrintDataLF(out Dato: ^BSTR); stdcall;
  function LeftMargin(out nCol: ^I2); stdcall;
  function TabsClearAll; stdcall;
  function TabsVertSet(out t1: ^I2; out t2: ^I2); stdcall;
  function TabsVertNext; stdcall;
  function FontCondensed; stdcall;
  function FontNormal; stdcall;
  function Code128C(out Cadena: ^BSTR); stdcall;
  function AñadirDigitoVerificador(out mCad: ^BSTR): BSTR; stdcall;
  function ImprimirFile; stdcall;

CoClass CPrint;
GUID = {43DDA42D-E710-4D4F-A270-CF70AE924E9C};
Edited by Aspro
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...