|
|
Upload a Report to a Website
{This script shows exporting an Ostendo report to a pdf file}
{then uploading to a website via ftp then viewing the pdf file}
{Wide range of uses including displaying up to date pricing}
begin
OstendoReport('Standard Item Price List',3,'','EXPORTREPORT',OstendoPath + 'ItemPriceList.pdf','');
SendFileFTP('www.yourftpprovider.com','ftpuser@yourftpprovider.com','ftpPassword',OstendoPath + 'ItemPriceList.pdf','ItemPriceList.pdf',True);
if MessageDlg('File Uploaded, View file on Website?',mtinformation,mbYes + mbNo,0) = mrYes then
Run('http://www.development-x.com/demo/ItemPriceList.pdf');
end.
You should amend the Run('http://www.development-x.com/demo/ItemPriceList.pdf') source to suit your ftp service provider