UiPath Documentation
activities
latest
false
Important :
Veuillez noter que ce contenu a été localisé en partie à l’aide de la traduction automatique. La localisation du contenu nouvellement publié peut prendre 1 à 2 semaines avant d’être disponible.
UiPath logo, featuring letters U and I in white

Activités de productivité

Dernière mise à jour 16 avr. 2026

Manipuler des documents Word

L'exemple ci-dessous explique comment lire le texte d'un fichier Word, l'écrire dans un autre document, ajouter une image et le convertir depuis Word en PDF à l'aide d'activités telles que Étendue de l'application Word / Utiliser un fichier Word,Lire le texte, Ajouter un texte, Ajoutez une image ou Enregistrez le document au format PDF. Vous pouvez retrouver ces activités dans le package UiPath.Word.Activities .

Remarque :

Download the example presented on this page in order to have access to all the files needed as Input for the explained workflow.

Voici comment le processus d'automatisation peut être créé :

  1. Ouvrez Studio et démarrez un nouveau Processus.
  2. Faites glisser un conteneur Séquence vers le concepteur de workflow.
    • Créez les variables suivantes :

      Nom de variableTypes de variablesValeur par défaut
      sourceDocumentChaîne de caractères (string)"Raw Text.docx"
      destinationDocumentChaîne de caractères (string)"About Samoyed.docx"
      rawTextFromSourceChaîne de caractères (string)S/O
  3. Drag a Word Application Scope activity inside the Sequence container.
    • Add the variable sourceDocument in the Document path field.
  4. Drag a Read Text activity inside the Word Application Scope activity.
    • Ajoutez la variable rawTextFromSource dans le champ Texte.
  5. Drag a Word Application Scope activity below the previous Word Application Scope activity.
    • Add the variable destinationDocument in the Document path field.

    • Select the Do container and create the following variables:

      Nom de variableTypes de variablesValeur par défaut
      picturePathChaîne de caractères (string)"Samoyed Picture.jpg"
      exportedDocToPdfChaîne de caractères (string)"About Samoyed.pdf"
  6. Drag an Append Text activity inside the Do container of the Word Application Scope activity.
    • Ajoutez la variable rawTextFromSource dans le champ Texte.
  7. Drag an Add Picture activity below the Append Text activity.
    • In the Properties panel, add the variable picturePath in the PicturePath field.
  8. Drag an Export To PDF activity below the Add Picture activity.
    • Add the variable exportedDocToPdf in the File path field.
  9. Exécutez le processus. Le robot lit le texte d'un document, l'écrit dans un autre document, ajoute une image. et le convertit de Word en PDF.

Cette page vous a-t-elle été utile ?

Connecter

Besoin d'aide ? Assistance

Vous souhaitez apprendre ? UiPath Academy

Vous avez des questions ? UiPath Forum

Rester à jour