UiPath Documentation
activities
latest
false
Importante :
Este contenido se ha localizado parcialmente a partir de un sistema de traducción automática. La localización de contenidos recién publicados puede tardar entre una y dos semanas en estar disponible.
UiPath logo, featuring letters U and I in white

Actividades de Document Understanding

Última actualización 22 de abr. de 2026

Leer archivos XPS

The example after explains how to read an .xps file, extract the data, and provide the output in two message boxes by using Read XPS Text or Read XPS With OCR activities. You can find these activities in the UiPath.PDF.Activities package.

Pasos
  1. Abre Studio y crea un nuevo Proceso.
  2. Arrastra un contenedor Secuencia al Diseñador de flujo de trabajo.
    • Crear las variables a partir de la siguiente tabla:

      Table 1. Variables to be created

      Tipo de variableValor predeterminado
      ExactStringCadenaN/D
      ExtractWithOCRStringCadenaN/D
      Nota:

      Añade tus archivos .xps al directorio del proyecto para poder ejecutar todo el proceso desde el mismo lugar.

  3. Drag a Read XPS Text activity inside the Sequence container.
    • In the Properties panel, add the expression "XPSTextDemo.xps" in the FileName field.
    • Add the value "All" in the Range field.
    • Agrega la variable ExactString en el campo Texto.
  4. Place a Message Box activity after the Read XPS Text activity.
    • In the Properties panel, select the Ok option from the Buttons dropdown list.
    • Agrega la variable ExactString en el campo Texto.
    • Select the check box for the TopMost option for always having the message box displayed to the foreground.
  5. Drag a Read XPS with OCR activity after the Message Box activity.
    • In the Properties panel, add the expression "XPSOCRDemo.xps" in the FileName field.
    • Add the value 1 in the DegreeOfParallelism field.
    • Add the value "1" in the Range field.
    • Agrega la variable ExtractWithOCRString en el campo Texto.
  6. Place a Microsoft OCR engine inside the Read XPS with OCR activity.
  7. Drag a Message Box activity after the Read XPS with OCR activity.
    • Añada la expresión ExtractWithOCRString en el campo Texto.
    • En el panel Propiedades, selecciona la opción Ok en la lista desplegable Botones.
    • Select the check box for the TopMost option for always having the message box displayed to the foreground.
  8. Ejecuta el proceso. El robot extrae los datos utilizando el proceso especificado y proporciona la salida en dos cuadros de mensaje.

Visit the following link to download the example in a ZIP format: Example.

    ¿Te ha resultado útil esta página?

    Conectar

    ¿Necesita ayuda? Soporte

    ¿Quiere aprender? UiPath Academy

    ¿Tiene alguna pregunta? Foro de UiPath

    Manténgase actualizado