Skip to main content

Print to pdf in the background

Comments

4 comments

  • Steven Delombaerde

    Hello

    I am trying to generate a PDF from an invoice in background after clicking ADD.

    When I use a customize rule with:

    LayoutHelper.LayoutOpener.ExecutePrintDef("T0000005",LayoutHelper.LayoutOpener.OpenLayoutModes.PDF,"DocNum",sDocNum);

    The PDF is generated “VISUALLY”. This is annoying as it doesn't close automatically.

    When I change the customize rule to:

    LayoutHelper.LD.ExecutePrintDef("T0000005",LayoutHelper.LayoutOpener.OpenLayoutModes.PDF,"DocNum",sDocNum);

    NOTHING happens, what am I doing wrong, and how can you silently generated the PDF?

    Kind regards

    Steven

    0
  • Michael Hubenschmid

    Hello Steven, please check for the variant with LayoutHelper.LayoutOpener.ExecutePrintDef if in your Printdef T0000005 this flag is not set: 

    0
  • Steven Delombaerde

    Thanks Michael, that does the trick!

    Appreciate your quick response!

    0
  • Lothar Hasenkämper

    Hi Michael.

    or try function direct in the PrintDef
     

    0

Please sign in to leave a comment.