File Export in RTC with “Common Dialog Management”
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
CREATE(FileObject,TRUE,TRUE);
IF FileObject.FileExists(FileName) THEN
FileObject.DeleteFile(FileName,TRUE);
FileObject.MoveFile(TempFileName,FileName);
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.

April 21st, 2011 at 7:28 pm
Title…
Este es un fantastico blog…
May 15th, 2011 at 5:15 pm
Financial & Investment Management Advisors…
Out of the ordinary information. Credit on behalf of the info!…
June 27th, 2011 at 8:02 pm
HCG …
Such wonderfull post on here today….
October 4th, 2011 at 7:34 am
I am new to your blog and love it. Thanks for including us in your adventures.
October 12th, 2011 at 1:31 pm
Thanks for posting this information.