when I open the pdf file, looks like the print option was keeped. But when I click the Print Setup button on the pdf file, it doesn't show the correct way. Can you help me to understand? Below is my code:
PageSetup ps = DestinationSheet.PageSetup;
ps.PrintArea = DestinationSheet.Cells[DestinationSheet.Cells.MinDataRow, DestinationSheet.Cells.MinDataColumn].Name + ":" + DestinationSheet.Cells[DestinationSheet.Cells.MaxDataRow, DestinationSheet.Cells.MaxDataColumn].Name;
ps.CenterHorizontally = true;
ps.Order = PrintOrderType.DownThenOver;
ps.Orientation = PageOrientationType.Landscape;
ps.PaperSize = PaperSizeType.PaperLegal;
FileName = new FileInfo(wb.FileName).DirectoryName + @"\" + FileName + ".pdf";
PdfSaveOptions PdfSaveOptions = new PdfSaveOptions();
PdfSaveOptions.OnePagePerSheet = true;
wbs.Save(FileName, PdfSaveOptions);