[DUG] Associate and pass filename to Delphi app

Mark Howard mhoward at pslog.co.nz
Thu Sep 1 16:11:47 NZST 2005


Hi All

I have a report viewer that uses a gui interface that allows a user to open a file dialogue and navigate to and select a report metafile.

I have associated the metafile extention (.QRP) with the application so that when the user clicks on a metafile the application opens.

What I want to also do, is have the filename passed to the application as a parameter so that it opens that report file.  I have tried to detect whether or not a parameter is passed in the application's main form OnCreate event but to no avail.

Is it possible to do what I want?  and what is the secret?

I want to still be able to use the file dialogue if no parameter is passed.

TIA

Mark

-- 
Forest Production Systems Ltd
Creators of PSLog - A harvesting information system
www.pslog.co.nz
Skype: markhoward


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.18/86 - Release Date: 31/08/2005



More information about the Delphi mailing list