We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Printing a Project doesn't work with PrintOptiosn

Hi,


We have been trying Printing Large Files from here: http://www.aspose.com/docs/display/tasksnet/Printing+a+Project#PrintingaProject-PrintLargeFiles but always get NullReferenceException at Print(options) code. To mention, I have a physical printer attached with my system.


// Read the input Project file
Project project = new Project(dataDir + “project.mpp”);

PrintOptions options = new PrintOptions();
options.Timescale = Timescale.ThirdsOfMonths;
if (project.GetPageCount(Timescale.ThirdsOfMonths) <= 280)
project.Print(options);

Hi Robert,


Thank you for writing to Aspose support team.

This issue is re-produced even with a small file and logged under Id:TASKSNET-1724 for further investigation by the product team. You will be automatically notified once any update is received in this regard.