Create a Project with Default Properties

Overview

This example demonstrates how to create a Microsoft Project file using Classic ASP with VBScript and Aspose.Tasks for .NET.

A simple web form allows users to input the standard and overtime resource rates. When the form is submitted, a new project is created, these values are assigned as default properties, and the project is saved as an XML file.

This approach is useful for legacy ASP-based applications that need to generate Project files dynamically without using modern .NET stack.

Sample Form: VBScript Classic ASP

This HTML form captures input from the user:

It then invokes VBScript logic that:

  1. Creates a Project object;
  2. Sets resource rate properties;
  3. Saves the file using ProjectWriter.

The final output is an XML file named prjASP.xml.


Example Output

Below is a screenshot showing the result in Microsoft Project, displaying the configured default properties:

default properties of Microsoft Project file

You can extend this logic to include more fields like calendars, tasks, or assignments.

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.