Quoting Aaron Scott-Boddendijk <[EMAIL PROTECTED]>:
anip
> > The only thing is that each time the program goes to write to the file
> > it calls the 'Save Dialog' box to to confirm the name of the file.
> > The report can create a number of different named files but I do not
> > want it to call the 'Save Dialog' box each time to confirm the name for
> > each file.
> >
> > Has anybody tried this or got any ideas?
>
> 1. Get a Temporary filename.
> 2. Save the file using that name
> 3. Remove the file.
>
> If this is done in code, I would expect the user won't see any dialogs.
>
> I believe it's also possible to convince the filesystem to delete the file
> automatically after closing.
I think what he is referring to is the printer driver's port is set to FILE.
When a document is sent to that printer, it puts up a dialog box asking for a
filename. At that level the calling program does not have any control over this
dialog or what the filename will be.
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz