How i can change the name of Pdf file generate with NAV 2016

Anis14Anis14 Member Posts: 2
The default file name does not match anything in NAV:
9keicwgeisbt.png
i want custom name for the pdf:
ej9m6vsot4h6.png

Answers

  • DolshaDolsha Member Posts: 41
    If u don't need Request Page u can use this:
    Filename := 'C:\MyReports\'+Customer.No;
    ReturnValue := Report206.SAVEASPDF(Filename);

    Or u can try edit name in RDLC.
  • RockWithNAVRockWithNAV Member Posts: 1,139
    Yep it comes as a Parameter name while saving. You can write there whatever you want.
  • NavNabNavNab Member Posts: 181
    Anis14 wrote: »
    The default file name does not match anything in NAV

    Hello @Anis14

    Report50004 means that you're printing report with ID = 50004. You get this as default name when you print your report without preview mode.

    CA00003 as you might notice, is the document number. You get this as default name if you click preview and then print.

    Now you know that "the default file name does match something in NAV" :wink:

    P.S: previous answers are relevant if the default file name does not, still, suit your requirement.

  • titus13titus13 Member Posts: 5
    How can i Force a filename (i'm using page request). ?
    I print a quote. I design a quotes report with caption "Devis" for example. And it is this name for Devis.pdf
    I would have liked to have the DocumentType+No.pdf for example. how can i do this in my report ? in layout or Object Designer ?
    Thank you
Sign In or Register to comment.