Remembering the folder where report was exported
In RB 10, when you exported a report to file and in the Printer Setup
dialog clicked the "..." button to choose the folder and filename, if
you generate this report again and export it, when you click "..." the
dialog already opens with the last used directory selected (the same you
used the last time you exported the report).
RB 14 has different behavior (it doesnt "remember" the last used
directory), and some customers are complaining because they have to
export the report several times, and everytime they need to keep
"changing" to the desired folder.
Is there a workaround to make it to behave liked RB 10?
Carlos
dialog clicked the "..." button to choose the folder and filename, if
you generate this report again and export it, when you click "..." the
dialog already opens with the last used directory selected (the same you
used the last time you exported the report).
RB 14 has different behavior (it doesnt "remember" the last used
directory), and some customers are complaining because they have to
export the report several times, and everytime they need to keep
"changing" to the desired folder.
Is there a workaround to make it to behave liked RB 10?
Carlos
This discussion has been closed.
Comments
In RB 14, Report.DefaultFileDeviceType defaults to PDF and
Report.TextFileName defaults to ($MyDocuments)\Report.pdf
For the old behavior, set Report.TextFileName to empty string. You will need
to do this via code, either prior to calling Report.Print or in the
Report.Template.OnLoadEnd and OnNew events, if you are using report
templates.
ppReport1.TextFileName := '';
-
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Nard, it seems that there is no way to reproduce the old behavior 100%
Doing what you said will bring the setup dialog with ".pdf" in the
"where" field (it will not be empty). If you change the device to XLS,
the RB's extension validation code becomes crazy, since the ".pdf" will
turn into ".xls.xls" and will behave weird if you try to delete the
first duplicated .xls string). It seems that something needs to be fixed
in RB code.
[]s
Carlos
There is now a patch available for RB 14.08 that resolves the issue with the
file name appearing as '.pdf' when TextFileName is blank. Registered RB
14.08 users can send a request to support@ to receive the patch.
-
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com