John, I am assuming that you are using just the inbuilt Clarion PDF generator to create the PDF within a report?
If so - the simplest way is to do the following within the Report procedure:
* Click on 'Actions...' then 'Report Properties'.
* In the 'General' tab, TICK the 'Print Preview' checkbox. <- Strangely, I found problems if this was NOT ticked for some reason...
* In the 'Report Targest' tab, change the 'Report Target' drop down to 'Other'. Change the 'Other Target' to 'PDF'
* In the 'Preview Options' tab, change 'Runtime Skip Preview' to 'True'
Ok, now go back to the Report main procedure screen and click on the 'Extensions' tab.
There should be an extension called 'Report to PDF'. Double click on it.
* Under the 'General' tab, change the 'Output Name Type' to 'Variable'
* Under 'File Name' - either specify a variable holding your PDF filename, or specify one like '.\web\reports\MyReport.pdf'.
* All other fields are as per your preference.
This should create the PDF automatically when you call the REPORT procedure from the web app.
*** TIP: The file name you specify above is based on the APPLICATION folder, NOT the web root folder, so the file name is '.\web\reports\Report1.pdf' here, but '/reports/Report1.pdf' when called from the web app as a link etc.
I would also consider using a unique name for the PDF by using the data and time as part of the name so that multiple users don't clobber the same file if they run it at the same time.
Also, if you specify a leading '$$$' in front of the PDF filename, NetTalk should DELETE the file once it is served up to your user. You may or may not want this to happen. If you don't prefix the file name with '$$$', e.g. '.\web\reports\corporate\$$$profit_and_loss.pdf' then you will have to manually do some housekeeping to clean it up afterwards.
Hope this helps.