Navision to Outlook

We currently have a purchase requestition system setup. On a daily basis our Purch dept converts approved Requisitions to PO’s in batches. I am trying to write a piece of code that once the reqs become po’s, email that PO to the individual who created the req. I have used outlook automation successfully in the past. But my problem is how do I print the PO then attach it to an email progammatically? Thanks in advance

You can save your report as html file and use the following code to attach the file (FName) to the message: MAPIMsg.AttachmentIndex := MAPIMitteilungen.AttachmentCount; MAPIMsg.AttachmentType := 0; MAPIMsg.AttachmentPathName := FName; MAPIMsg.AttachmentPosition(STRLEN(Body)); Marcus Marcus Fabian phone: +41 79 4397872