I hope you have observed that a new window will be opened with options Open, Save and Cancel while exporting a file in RTC.
* I have taken Report 9171 - Export Profiles as example.
If you Run the report in classic, you will have an option to select the path and file name in Options tab
But if you run the same report in RTC, you will not have an option to select the path and file name in options tab
After clicking OK, you will get the options to Open, save and cancel
If you want to export the file as in Classic Client like with common Dialogue Management, follow the below steps..
Create a local function “DownloadFile” in Codeunit 419 - 3-Tier Automation Mgt.
TempFileName := DownloadTempFile(TempFileName);
IF ISCLEAR(FileObject) THEN
IF FileObject.FileExists(FileName) THEN
Name DataType Subtype Length
*FileObject Automation ‘Windows Script Host Object Model’.FileSystemObject
Modify the code in Report - OnPreReport() and Report - OnPostReport() Triggers as
Comment the code in RequestOptions Form - OnOpenForm()
RequestOptionsForm.FileName.VISIBLE := NOT ISSERVICETIER;
Recreate the requestpage by using the transformation tool
Now, run the report in RTC
It will have an option to select file path and name
Click Ok and it will save the file in the given path as in Classic Client.