Page 1 of 1

Customise Report Attachment Name

Posted: 23 Nov 2010, 17:36
by harkerhill
Hi

I'm using Sage 50 Accounts Plus 2011 and am emailing out invoices to customers.

I've got into the report designer and gone into the email options screen and looked all over.

I am trying to customise the attachment name that goes out as a PDF to be called

Company_invoice_<invoice_number>.pdf

Also looking to put fields within the note or body of the email. Is that possible or is it just static text?

Can anyone let me know if that's possible?

Thanks

Re: Customise Report Attachment Name

Posted: 26 Nov 2010, 11:14
by brucedenney
Some of what you want can be done in V2011, what version are you running?

Re: Customise Report Attachment Name

Posted: 29 Nov 2010, 10:33
by harkerhill
brucedenney wrote:Some of what you want can be done in V2011, what version are you running?
Version 17.0.12.197

Thanks

Re: Customise Report Attachment Name

Posted: 17 Dec 2010, 15:23
by brucedenney
If you get the upgraded report writer V1.3 then you can set the attachment name.

The body text is fixed if you are sending the report as an attachment

Re: Customise Report Attachment Name

Posted: 10 Jan 2011, 09:18
by harkerhill
But can it be set to a field - so I could have the attachment name called <INVOICE_NUMBER>.pdf

Re: Customise Report Attachment Name

Posted: 12 Jan 2011, 16:20
by brucedenney
Yes setting it to a name derived from an expression is what you can ow do with V1.3

The expression I use is CString(INVOICE.INVOICE_NUMBER) +INVOICE.ACCOUNT_REF

this gives me the invoice number followed by the account reference as the file name.

You do not need to specify the pdf extension.

Note that the numeric field is converted to a string using the Cstring function.