Hello,
I want to alter the filename given to a document when you use the Print -> PDF function. For example on a Sales Order, if I print the confirmation and select PDF it auto names it Report10075.pdf, I'd like to change it to [order number].pdf.
I've had a dig in the code but cannot find where - is it built in - I have found the code for emails (though that does what I would like).
Any ideas?
Thanks
0
Comments
Number ::::Type: Integer ::::The ID of the report that you want to run. On the View menu, click C/AL Symbol Menu to select the report from a list.
FileName ::::Type: Text :::: The path and name of the file that you want to save the report as. Here, FileName:='C:\Sumit'+Rec.No+'.PDF';
Record :::: Type: Record ::::Specifies which record to use in the report. Any filters that have been applied to the record that you specify will be used.
Hope this Function work for you,
Maybe you could add this request on Microsoft Connect?
Tino Ruijs
Microsoft Dynamics NAV specialist