Acrobat readers print page settings does not show legal size even after exporting it as legal pdf

Posted by: praveenkr on 8 September 2017, 2:27 pm EST

  • Posted 8 September 2017, 2:27 pm EST

    After exporting to pdf from farpoint spread, acrobat readers print page settings does not show legal size  as paper size.


    Can you please help me on this ?


     


     Following code is used to export to pdf :


    PrintInfo printInfo = new PrintInfo();


    printInfo.Orientation = PrintOrientation.Landscape;


    printInfo.PrintType = PrintType.CellRange;


    SmartPrintRulesCollection printRules = new SmartPrintRulesCollection();


    printRules.Add(new LandscapeRule(ResetOption.None));


    printRules.Add(new ScaleRule(ResetOption.None, 1.0f, 0.1f, 0.05f));


    printInfo.SmartPrintRules = printRules;


    printInfo.SmartPrintPagesTall = 1;


    printInfo.UseSmartPrint = true;


    printInfo.ShowColumnHeader = PrintHeader.Hide;


    printInfo.ShowShadows = false;


    printInfo.ShowRowHeader = PrintHeader.Hide;


    printInfo.Margin = new PrintMargin(20, 20, 20, 20, 20, 20);


    printInfo.PaperSize = "Legal";


     

  • Replied 8 September 2017, 2:27 pm EST

    Hello,

    You also need to set the PaperSource.Setting the paper size to Legal does not search your printer (Printer property) for a tray that holds that size and redirect to it; you must specify the correct tray in the PaperSource property.

     

    Thanks,

     

  • Replied 8 September 2017, 2:27 pm EST

    Actually I could not see the PaperSource.Setting  property but I could see PaperSource.SourceName. I have many client pcs and many printers. Printer models may vary and trays will vary.


    How can I automate the pageSettings for the pdf so that it prints correctly  when printed via acrobat reader?

  • Replied 8 September 2017, 2:27 pm EST

    Hello,

    I am further testing this issue with at my end, I will update you about the same soon.

     

    Thanks,

     

  • Replied 8 September 2017, 2:27 pm EST

    Hello,

    I have tested this issue, it seems to be working fine with the latest build of Spread 5. You need to provide the paper size with dimensions for Legal paper size(850X1400).

     printInfo.PaperSize = New System.Drawing.Printing.PaperSize("Legal", 1400, 850)

    Please test the same and let me know if it works for you.

     

    Thanks,

     

     

     

     

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels