How To Call Save As Dialog?

Dear All,
I have OAS Forms And Report Services10g(9.0.4) on Window 2000 & service pack 4 And 10g Developer Suit.
To deploy application on web..
How can I call "Save As Dialog" to save a file on the user's machine through When_Buton_Pressed trigger. The file was generated by the database.
Any help will be nice.
Thanks
Advertisement
Reply

Thanks for code
but when i place on when button trigger it gives this error dialog
Oracle.forms.webutil.file.FileFunctions bean not found.
WEBUTIL_FILE.FILE_SELECTION_DIALOG_INT will not work.
the code was
Declare
LC$Target Varchar2(256) := 'text.txt' ; -- file name
LC$Fic Varchar2(256) ;
Begin
LC$Fic := WEBUTIL_FILE.FILE_SAVE_DIALOG
'D:\',
LC$Target,
'Sélectionner un fichier'
If LC$Fic is null Then
Return ; --// end user has pressed cancel
End if ;
End;
help needed & Please tell me How can i verify that mine installation & configuration of webtill is correct.
Thanks
Rana Adnan