Independentsoft
Home
Products
Purchase
Support
Downloads
Company
Contact
JMSG
>
Tutorial
> Read task
The following example shows you how to open an existing file and display some of task's properties.
import java.io.IOException; import com.independentsoft.msg.Message; public class Example { public static void main(String[] args) { try { Message task = new Message("c:\\temp\\task.msg"); System.out.println("Subject: " + task.getSubject()); System.out.println("StartDate: " + task.getTaskStartDate()); System.out.println("EndTime: " + task.getTaskDueDate()); System.out.println("Owner: " + task.getOwner()); System.out.println("PercentComplete: " + task.getPercentComplete()); System.out.println("TaskStatus: " + task.getTaskStatus()); System.out.println("ActualWork: " + task.getActualWork()); System.out.println("TotalWork: " + task.getTotalWork()); System.out.println("DateCompleted: " + task.getDateCompleted()); System.out.println("Body: " + task.getBody()); } catch (IOException e) { e.printStackTrace(); } } }