problem with export PDF

I am trying to export a PDF with List & Label 29 and the instructions I am using are:

LL.Core.LlPrintWithBoxStart(LlProject.Label, sfilename, LlPrintMode.Export, LlBoxType.StandardAbort, Me.Handle, “Sto Stampando le Etichette…”)

LL.Core.LlPrintSetOptionString(LlPrintOptionString.Export, “PDF”)

LL.Core.LlXSetParameter(LlExtensionType.Export, “PDF”, “Export.Target”, “PDF”)

LL.Core.LlXSetParameter(LlExtensionType.Export, “PDF”, “Export.File”, “c:\temp\NomeFile.pdf”)

LL.Core.LlXSetParameter(LlExtensionType.Export, “PDF”, “Export.Quiet”, “1”)

LL.Core.LlXSetParameter(LlExtensionType.Export, “PDF”, “Export.Overwrite”, “1”)

LL.Core.LlXSetParameter(LlExtensionType.Export, “PDF”, “Export.ShowResult”, “0”)

LL.Core.LlXSetParameter(LlExtensionType.Export, “PDF”, “Export.ShowDialog”, “0”)

but it keeps showing me the save dialog and I have to confirm overwriting the file every time. Can someone help me?

You might be missing Export.Path. Check the reference here: Export Without User Interaction

Thank you Jochen. Solved. This line was missing : LL.Core.LlXSetParameter(LlExtensionType.Export, “PDF”, “Export.Path”, "c:\temp")

1 Like