UiPath Documentation
activities
latest
false
Wichtig :
Bitte beachten Sie, dass dieser Inhalt teilweise mithilfe von maschineller Übersetzung lokalisiert wurde. Es kann 1–2 Wochen dauern, bis die Lokalisierung neu veröffentlichter Inhalte verfügbar ist.
UiPath logo, featuring letters U and I in white

Document Understanding-Aktivitäten

Letzte Aktualisierung 22. Apr. 2026

Read XPS Files

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.

Schritte
  1. Öffnen Sie Studio und erstellen Sie einen neuen Prozess.
  2. Ziehen Sie einen Sequence-Container in den Workflow-Designer.
    • Erstellen Sie die Variablen aus der folgenden Tabelle:

      Table 1. Variables to be created

      VariablentypStandardwert
      ExactStringStringKeine Angabe
      ExtractWithOCRStringStringKeine Angabe
      Hinweis:

      Fügen Sie Ihre .xps-Dateien zum Projektverzeichnis hinzu, um den gesamten Prozess vom selben Ort aus ausführen zu können.

  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.
    • Fügen Sie die Variable ExactString in das Feld Text ein.
  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.
    • Fügen Sie die Variable ExactString in das Feld Text ein.
    • 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.
    • Fügen Sie die Variable ExtractWithOCRString in das Feld Text ein.
  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.
    • Fügen Sie den Ausdruck ExtractWithOCRString in das Feld Text ein.
    • In the Properties panel, select the Ok option from the Buttons drop-down list.
    • Select the check box for the TopMost option for always having the message box displayed to the foreground.
  8. Führen Sie den Prozess aus. Der Roboter extrahiert die Daten mithilfe des angegebenen Prozesses und stellt die Ausgabe in zwei Meldungsfeldern bereit.

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

    War diese Seite hilfreich?

    Verbinden

    Benötigen Sie Hilfe? Support

    Möchten Sie lernen? UiPath Academy

    Haben Sie Fragen? UiPath-Forum

    Auf dem neuesten Stand bleiben