1

Topic: Finite file name from a dialog box to tire out in the field of current record

The people, kind time of days! So, we do OutputTo the report on current record in format RTF. The dialog box (sm a picture) from which the user is offered to select a place for saving of a preempted file opens. Also the user can independently change offered for saving of this file a name. I will accept one of two variants:
1. After button click to "Save" in the specified window, it is necessary to intercept somehow final file name (if all the same the user disagreed with the offered variant of Aksessa and ventured it to change), with a view of its location in one of fields in current record, from which actually and the report was preempted.
2. To forbid to change this name in the specified dialog box (well, something of type to make this field inactive).
What advise and how it can be made?

2

Re: Finite file name from a dialog box to tire out in the field of current record

Wipeout2097, if to method OutputTo to specify a way to a file it is fulfilled silently. Before it it is possible to open the dialogue, to receive a way, and after successful performance OutputTo to save it.

3

Re: Finite file name from a dialog box to tire out in the field of current record

Anatoly (Kiev), the excellent decision! As I did not guess at once... Interposed between process old kind WizHook... All like clockwork!
One task is solved. On 1 all is preempted as it is necessary. Now as though similar  to solve the second task, after all there is still Knopka2... smile smile And on it the same report to prepare for sending in format RTF through OutLook.  a window which suggests to enter the addressee, a message subject well etc. There at once the report is attached as nesting in the form of file RTF with a name of the sent report. As though this name to change, that in nesting the file was called how it is necessary to me instead of how at me the report is called? Couples I looked in SendTo, there was not present in the parameter, responsible for this business... No, I certainly guess, what Aksess somewhere creates a temporary file in format RTF, but here is how to affect process of creation of this file?

4

Re: Finite file name from a dialog box to tire out in the field of current record

Wipeout2097 wrote:

Now as though similar  to solve the second task

For this purpose it is necessary to forget that in Akse there is a built in method of sending of letters and to look at a forum for examples of sending of the letter with nesting with usage of object model OutLook, and it is even better - CDO. And examples - a great lot...