We have noticed that the function to print a specific number of pages does not work.
The following link provide examples in your documentation which indicates that it should:
An example of the specific printing code we have used is below.
var ps = new System.Drawing.Printing.PrinterSettings();
ps.FromPage = 1;
ps.ToPage = 1;
ps.PrintRange = System.Drawing.Printing.PrintRange.SomePages;
var po = new Aspose.Tasks.Saving.PrintOptions();
po.PresentationFormat = presentationFormat;
po.FitContent = fitContent;
po.Timescale = Aspose.Tasks.Visualization.Timescale.DefinedInView;
po.PageSize = Aspose.Tasks.Visualization.PageSize.DefinedInView;
po.StartDate = document.Get(Prj.StartDate);
po.EndDate = document.Get(Prj.FinishDate);
I have attached a sample file which will highlight the issue. However, this can happen with any MPP.
Source_Example.zip (102.3 KB)