Consultor Eletrônico



Kbase P100923: How to have the browseToolbar Print Preview to open multiple windows ?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   07/02/2005
Status: Unverified

GOAL:

How to have the browseToolbar Print Preview to open multiple windows ?

GOAL:

How to open a new Internet Explorer window for each XML Report generated ?

FACT(s) (Environment):

Dynamics

FIX:

The Print Preview generates an XML file and will launch it in the associated viewer using an OS-COMMAND statement. When using Internet Explorer, by default the behavior is to re-use the same window if multiple files are launched from the same context / application.

Two steps are required to achieve this functionality:
1. Internet Explorer must be configured to use multiple windows. This is achieved via Tools -> Internet options -> Advanced. Here, disable the "Reuse windows for launching shortcuts" option.

2. Internet Explorer will now use different windows, but will still reuse windows if files with the same name are launched.
Therefore, to ensure Dynamics uses different filenames, the printXMLreport procedure in the ryxmlplip2 object must be modified so unique filenames are guaranteed.

For example:

cReportName = SESSION:TEMP-DIR + "XMLReport.xml".

Could be modified to read:

cReportName = SESSION:TEMP-DIR + "XMLReport" + STRING(ETIME) + ".xml".