DR 5.0.1, DF 18.2
After 20 months using exclusively DR instead of the other reporter, today I realized several things: (all of the following is via integration)
1.) When I generate a report and then close the invoking view, the report is also closed. Why? How can I prevent this?
2.) In two of my views, when I call a report, the report shows in the back of the invoking view. Why? How can I prevent this?
3.) If I generate let's say an Order, leave the preview opened, then go back and change to see a different order, I don't get two different previews, it seems that the last is replacing the first. then when I close the invoking view, I get an error. Why?
First Time I run the report:

Second time I run the report, but for a different order, without closing the previous preview:

Error after closing the invoking view:

4.) Sometimes when I try to generate a new report, it shows nothing, if I try the second time (without changing anything), it shows the report. Why?
I did subclassed cDRReport.Pkg as follows:
Code:
Use cDRReport.pkg
Class cSageDRReport is a cDRReport
Procedure Construct_Object
Forward Send Construct_Object
Set pbAllowMaximizeView to True
End_Procedure
Procedure OnPrintReport Handle ByRef hPrintDlg
Handle hoPrintDialog
PRINTPAGERANGE[] PageRanges
Forward Send OnPrintReport (&hPrintDlg)
Get phoPrintDialog to hoPrintDialog
Move 1 to PageRanges[0].nFromPage
Get ReportPageCount to PageRanges[0].nToPage
Set pPageRanges of hoPrintDialog to PageRanges
Set piFlags of hoPrintDialog to (PD_USEDEVMODECOPIES ior PD_DISABLEPRINTTOFILE ior PD_PAGENUMS ior PD_SELECTION)
End_Procedure
End_Class
Maybe I'm doing something wrong and I just can't see it.
Thanks in Advanced.