Aggiungere attività ricorrente in MS Project usando Java

Questa breve guida descrive come aggiungere un’attività ricorrente in MS Project usando Java. You will get details on configuring the IDE, a list of programming steps, and sample code that shows how to create a recurring task in Microsoft Project using Java. Tutti i dettagli saranno forniti per personalizzare le attività ricorrenti e il file di output MPP.

Passaggi per aggiungere un’attività ricorrente in MS Project usando Java

  1. Set the IDE to use Aspose.Tasks for Java to create a recurring task.
  2. Applica la licenza del prodotto e apri il file MPP esistente nel file Project
  3. Crea un nuovo recurring task con una durata di un’ora
  4. Define the activity repeat model as a weekly task with the desired days of the week.
  5. Set the start and end dates during which the recurring activity will be repeated each week.
  6. Attach the standard calendar to the recurring activity.
  7. Add the recurring activity to the desired activity as a child activity.
  8. Save the resulting project file and print its information for confirmation.

These steps explain how to make a recurring task in MS Project 2016 using Java. Load the license, create a RecurringTaskParameters object to create a recurring task, instantiate a WeeklyRepetition object to define the days of the week for the task, define EndByRecurrenceRange to set the start and end dates, and use WeeklyRecurrencePattern to accumulate the repetition and recurrence interval described above. Link the recurring task to the calendar and add the recurring task to the target task as a child before saving the resulting project file.

Codice per attività ricorrenti di Microsoft Project in Java

This code demonstrates the process of creating a recurring task in Microsoft Project. Consider using EndAfterRecurrenceRange to end the recurrence after N occurrences instead of a date range. Puoi accedere alle ricorrenze usando Task.isRecurring() per un controllo più chiaro, usa RecurringTaskInfo.getOccurrences() to obtain the total number of generated occurrences and use RecurringTaskInfo.getUseEndDate() per confermare quale condizione di fine è applicata.

Questa guida aiuta a lavorare con le attività ricorrenti in MS Project. To open an XER file without the Primavera software, refer to the article Open XER file in Java.

 Italiano