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:
- Standard Rate
- Overtime Rate
It then invokes VBScript logic that:
- Creates a
Project
object; - Sets resource rate properties;
- 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:
You can extend this logic to include more fields like calendars, tasks, or assignments.