# Export and Import to MSProject

## Content



The **GanttView** control supports exporting GanttView schedules to MS Project, and importing MS Project XML to GanttView by using [ExportToMsProjectXml](/componentone/docs/win/online-ganttview/) and [ImportFromMsProjectXml](/componentone/docs/win/online-ganttview/) respectively.

The ExportToMsProjectXml (string fileName) method is useful in exporting to Microsoft Project's xml file. It takes the parameter **fileName**, which is the file name to export. The ImportFromMsProjectXml (string fileName, [bool roundToDurationUnit = True\]) helps in importing Microsoft Project's xml file. It takes the parameter **fileName**, which is the File name to import, and **roundToDurationUnit,** which Indicates whether the Start and Finish will be rounded according to the C1.Win.C1GanttView.[DurationUnits](/componentone/docs/win/online-ganttview/) enumeration.