AnsweredAssumed Answered

FMGO pdf email issue

Question asked by petek157 on Jan 13, 2011
Latest reply on Jan 24, 2011 by TSGal

Title

FMGO pdf email issue

Post

I have followed the scripting instructions that I have found on the forum for emailing a pdf saved layout.  The script works perfect using filemaker pro 11.  When I use the same script on my iPhone 4 using filemaker go it cuts off the header of the list view document. So on an invoice I only see it from the line items down. 

Script:

Go to Related Record [Show only related records; From table: "Line Items"; Using layout: "Invoice Print" (Line Items)]

Set Variable [$FileName; Value:"Test_"& Substitute (Get (CurrentDate); "/";"-") &".pdf"]

Save Records as PDF [No Dialog; "&FileName"; Records being browsed]

Set Variable [$PDFPath; Value:Get(DocumentsPath) & $FileName]

Send Mail [Send via E-mail Client; To: email@address.com; Subject: "Great Lakes Furniture Invoice"; Message: "Thank you for your purchase"; "$PDFPath"]

Go to Related Record [Show only related records; From table: "Invoices"; Using layout: "Record Detail-Invoices iPhone" (Invoices)]

END

(forgive me if there are anytypos.I retyped everything in)

I was wondering if I am doing something obvious wrong or if there are issues with doing this using the iPhone but this is really a deal breaker for me not to be able to either email a pdf properly, or it would be even better if we could just print right from the GO app.

Any help would be greatly appreciated.

Peter

Outcomes