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
Answers
Filename := 'C:\MyReports\'+Customer.No;
ReturnValue := Report206.SAVEASPDF(Filename);
Or u can try edit name in RDLC.
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/
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"
P.S: previous answers are relevant if the default file name does not, still, suit your requirement.
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