I am trying to save a task file to multi-page tiff image. I set the following
ImageSaveOptions saveOptions = new ImageSaveOptions(SaveFileFormat.TIFF);
saveOptions.HorizontalResolution = 200;
saveOptions.VerticalResolution = 200;
saveOptions.MarkCriticalTasks = true;
saveOptions.LegendOnEachPage = false;
saveOptions.Gridlines = new List();
Gridline gridline = new Gridline();
gridline.GridlineType = GridlineType.GanttRow;
gridline.Color = Color.CornflowerBlue;
gridline.Pattern = LinePattern.Dashed;
saveOptions.Gridlines.Add(gridline);
saveOptions.FitContent = true;
saveOptions.PixelFormat = System.Drawing.Imaging.PixelFormat.Format16bppRgb565;
saveOptions.PresentationFormat = PresentationFormat.TaskSheet;
saveOptions.TiffCompression = TiffCompression.Lzw;
// Save project layout to separate files
saveOptions.SaveToSeparateFiles = true;
project.Save(dataDir + “PrintProjectPagesToSeparateFiles2_out.tif”, (SaveOptions)saveOptions);
The output tif contains several pages, but if last row number on page 1 and the first row number on page 2 you will see several missing rows. Also there columns are missing on the right side on every page.