Print a certain number of pages not working

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);

document.Print(ps, po);

I have attached a sample file which will highlight the issue. However, this can happen with any MPP.

Thanks,

Source_Example.zip (102.3 KB)

@lawgb686

Can you please share the issue you are facing along with the problematic output (if any) so that we may try to assist you further.

The problem is that your documentation indicates that we can print a certain number of pages of a MPP file. For example we can choose to print the first 2 pages of a 10 page document. However, all of the pages print regardless of the setting.

The code in italics is the relevant bit.

Thanks,

@lawgb686

I have created an investigation ticket with ID TASKSNET-4715 in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.

The issues you have found earlier (filed as TASKSNET-4715) have been fixed in this update.