Background:
Web app creates a report which is visible with ShowURL(mPDF.URL) or using ExecuteJavaScript “window.open(’” + mPDF.URL+ “’,‘blank’)”
mPDF is a Webfile with MimeType = “application/pdf”
Xojo ver 2014 1.1, Valentina ver 5.5.5
The Problem:
The .pdf file does not get added when attempting to attach the report via email. The code below returns an empty file which gets attached.
[i]file = New EmailAttachment
file.loadFromFile GetFolderItem(mPDF.URL)[/i] ' Also tried with FolderItem.PathTypeURL
[i]mail.attachments.append file[/i]
Have tried pushing the URL as a string to troubleshoot and ensure the correct path is being passed but still only blank attachment.
Any assistance will be most appreciated.