Example 2 - Open and print an existing schedule

 

This example starts Milestones Professional, opens an existing schedule file, prints it, and then closes it.

 

 

 

Example Code:

Public Sub Example2()

Set objMilestones = GetObject("c:\example.MLP", "Milestones")

With objMilestones

  . Activate

  . Print

  . Close

End With

End

End Sub

In this example the .GetObject command causes Milestones to start and load an existing file. If the file does not exist, then the .GetObject command fails and Milestones does not start.

 

 

 

Related Topics

  1. Save
  2. Activate
  3. Example 1 - Create, print, and save a file
  4. Print

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

To effectively program with this interface, it's important to learn all about Milestones Professional.  Learn about Milestones.

Milestones Professional 2025 Automation Methods and Properties.  © Copyright 2000-2025, KIDASA Software, Inc. All rights reserved.