Hi All

I am having a senior moment (I know "only one?").

I have been through the External function before but for the life of me
can't remember how and where to use it.

I have a form which creates an Excel file and then prints it to a PDF
using PdfCreator.

The code for reference is:

pdfjob = ""
pdfjob = CREATEOBJECT("PDFCreator.clsPDFCreator")
pdfjob.cOption("UseAutosave") = 1
pdfjob.cOption("UseAutosaveDirectory") = 1
pdfjob.cOption("AutosaveDirectory") = "C:\PurchaseOrders\PDFs\"
pdfjob.cOption("AutosaveFilename") = lcFileName
pdfjob.cOption("AutosaveFormat") = 0
pdfjob.cClearCache

Then it takes the PDF and Emails it using an fll from Craig Boyd called
"vfpexmapi.fll"

The code for the fll is:

#DEFINE FLLPATH "c:\purchaseorders\libs\"

Public goMapiEvent
Local lcAttachment, lcHTML, lcRTF, lcText
Set Library To Locfile(FLLPATH + "vfpexmapi.fll")

*****************************
*!* Send Text Email
*****************************
m.lcText = "Here's a sample MK Purchase Order."
*!*     ?"Sending Text Email"
EMCreateMessage(m.lcText ,lcMessage,IMPORTANCE_NORMAL)

EMAddRecipient(lcEmailAddress, MAPI_TO)
*!* More recipients could be added here
*!*     m.lcAttachment = "C:\PO EXCEL FILES\1234 19TH, SEPTEMBER 2007 -
SEA.pdf"
EMAddAttachment(lcAttachment)
*!* More attachments could be added here
EMSend(.T.)

SET LIBRARY TO
RELEASE goMapiEvent
Everything works fine in development mode.

But When I compile I get the following errors.

Form c:\purchaseorders\forms\orderentry.scx has the following errors:
    Unknown EMCREATEMESSAGE - Undefined
    Unknown EMADDRECIPIENT - Undefined
    Unknown EMADDATTACHMENT - Undefined
    Unknown EMSEND - Undefined

Help please

Peter Hart
Peter Hart Computers




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to