VXml VXML_GetValue VXml
Obtiene informacion del procesamiento del documento

Namespace: VXml®
Assembly: VXML_Doc (in VXML_Doc.exe) Version: 1.0.0.0 (1.0.0.0)
Sintáxis

public static string VXML_GetValue(
	int hXml,
	int value
)

Parámetros

hXml
Tipo: System Int32
Handle del documento
value
Tipo: System Int32
Valor a obtener

Field Value

Tipo: String
1 // VXML_GET_DESCERROR Codigo de error en modo texto

Field Value

Tipo: String
2 // VXML_GET_ERROR Descripcion detallada del error

Field Value

Tipo: String
3 // VXML_GET_CSDNUMBER Numero de CSD ( certificado de sello digital )

Field Value

Tipo: String
4 // VXML_GET_SELLO Sello digital del comprobante ( emisor )

Field Value

Tipo: String
5 // VXML_GET_CADENA Cadena original del comrpobante

Field Value

Tipo: String
6 // VXML_GET_SATCSDNUMBER Numero del CSD del SAT

Field Value

Tipo: String
7 // VXML_GET_SATSELLO Sello del timbre fiscal

Field Value

Tipo: String
8 // VXML_GET_SATCADENA cadena del timbre fiscal

Field Value

Tipo: String
9 // VXML_GET_SATUUID folio fiscal o UUID

Field Value

Tipo: String
10 // VXML_GET_SATFECHA Fecha de timbrado

Field Value

Tipo: String
11 // VXML_GET_CSDINI Fecha de incio del CSD ( del emisor )

Field Value

Tipo: String
12 // VXML_GET_CSDFIN fecha de termino del CSD ( del emisor )

Field Value

Tipo: String
13 // VXML_GET_VPID VirtualPAC_ID o folio interno asignado al comprobante

Field Value

Tipo: String
14 // VXML_GET_DISP Cantidad de timbres disponibles

Field Value

Tipo: String
15 // VXML_GET_DLLVERSION Version de la libreria

Field Value

Tipo: String
16 // VXML_GET_FECHAXML Fecha del comprobante

Field Value

Tipo: String
17 // VXML_GET_WARN Mensaje de warning del servidor

Field Value

Tipo: String
18 // VXML_GET_PAC Nombre del pac con que se timbro el comprobante

Field Value

Tipo: String
19 // VXML_GET_REVISION Numero de revision de la dll

Return Value

Tipo: String
Cadena de caracteres con la informacion que ha sido requerida
Examples

private void GeneraDocto(String version)
{
    // Creamos un comprobante 
    int hXml = VXML_New(version);

    // Llenado del documento 
    // .... 

    // Procesamiento del documento 
    int nResult = VXML_ProcesaDocumento( hXml, "c:/ruta/csd.cer", "c:/ruta/llavePrivada.key", "passwordLlavePrivada", "c:/ruta/salida.xml" );

    if ( nResult != 0 )
    {
        // Ocurrio un Error, mostramos el valor 1 y 2
        VXML_ShowError( hXml, 1 );    // Error en modo texto
        VXML_ShowError( hXml, 2 );    // Descripcion detallada del Error
    }
    else
    {
        // Lectura de resultados
        String cadenaOrigina = VXML_GetValue( hXml, 5 );
        String uuid = VXML_GetValue( hXml, 9 );
        String fechaTimbre = VXml( hXml, 10 );
        // Obtenemos mas informacion
    }

    // Liberacion de memoria
    VXML_Free(hXml);
}
Veáse También