Developer's Guide
Below youll find articles on how to use Tasqize MPP to PDF in your .NET projects. This guide covers everything from setting a license and choosing timescale settings to applying text styles or specific project views.
Below youll find articles on how to use Tasqize MPP to PDF in your .NET projects. This guide covers everything from setting a license and choosing timescale settings to applying text styles or specific project views.
The Tasqize MPP to PDF Converter simplifies the creation of PDF documents from MPP files, enabling you to generate Gantt charts, resource sheets, or other project overviews in PDF form.
TextStyle for tasks, milestones, resources, or custom item types (e.g., OverallocatedResources, SummaryTasks).To convert an MPP to PDF:
var license = new Tasqize.License();
license.SetLicense("path/to/Tasqize.Project_to_PDF_Converter_for_.NET.lic");var converter = new Tasqize.ProjectToPdfConverter();
var saveOptions = new Tasqize.PdfSaveOptions
{
FitContent = true, // avoids text truncation
Timescale = Tasqize.Timescale.Weeks, // day, week, month, etc.
PresentationFormat = Tasqize.PresentationFormat.ResourceSheet
};
saveOptions.TextStyles.Add(new Tasqize.TextStyle
{
ItemType = Tasqize.TextItemType.CriticalTasks,
Color = System.Drawing.Color.Red,
FontStyle = Tasqize.FontStyles.Bold
});converter.ConvertToPdf(
inputFilePath: "MyPlan.mpp",
outputFilePath: "MyPlan.pdf",
options: saveOptions
);MyPlan.pdf was created and that it reflects your chosen timescale, presentation format, and text styling.ViewSettings object if you want a named view or to enable progress lines, etc.SolidFill) for certain text items.FileNotFoundException if the input MPP doesnt exist.InvalidOperationException if the MPP is corrupt or the conversion fails.using Tasqize;
var license = new License();
license.SetLicense("Tasqize.Project_to_PDF_Converter_for_.NET.lic");
var converter = new ProjectToPdfConverter();
converter.ConvertToPdf(
"../../../example.mpp",
"example-output.pdf",
new PdfSaveOptions {
PresentationFormat = PresentationFormat.GanttChart,
Timescale = Timescale.Days
}
);
Console.WriteLine("Conversion complete!");This plugin is designed for developers seeking to integrate MPP processing directly into .NET applications, eliminating the need for Microsoft Project to be installed. For more details on system requirements and non-Windows usage, see the Installation section.