xsharp.eu • ReportPro3 in X# initialization and deinitialization of report preview issues - Page 2
Page 2 of 2

ReportPro3 in X# initialization and deinitialization of report preview issues

Posted: Sun Oct 17, 2021 7:01 pm
by FFF
Didn't the installer start at the end the"Stackbuilder"? There it suggests 32 and 64 drivers...

ReportPro3 in X# initialization and deinitialization of report preview issues

Posted: Mon Oct 18, 2021 6:45 am
by Frank Müßner

ReportPro3 in X# initialization and deinitialization of report preview issues

Posted: Mon Oct 18, 2021 6:59 am
by Chris
Thanks a lot guys, got it to work now! And I see the issue with the report preview window freezing when there's an error, look into it...

.

ReportPro3 in X# initialization and deinitialization of report preview issues

Posted: Mon Oct 18, 2021 7:17 am
by Chris
Hi Michael,

Please try issuing this, when you detect an exception in RP3 when printing, does it solve the problem?

Code: Select all

IF SELF:_Report:Printer:PrintWindow != NULL
	CloseWindow(SELF:_Report:Printer:PrintWindow:Handle(0))
ENDIF

.

ReportPro3 in X# initialization and deinitialization of report preview issues

Posted: Mon Oct 18, 2021 7:27 am
by Michal Rajnoha
It minimizes the preview window, but it stays open and hanging.

ReportPro3 in X# initialization and deinitialization of report preview issues

Posted: Mon Oct 18, 2021 7:32 am
by Chris
Michal Rajnoha wrote:It minimizes the preview window, but it stays open and hanging.
Ah right, I didn't notice it in the task bar. Please use DestroyWindow() instead, this seems to be taking care of it for good.

.

ReportPro3 in X# initialization and deinitialization of report preview issues

Posted: Mon Oct 18, 2021 7:37 am
by Michal Rajnoha
OK, that seems to work, thank you Chris.

ReportPro3 in X# initialization and deinitialization of report preview issues

Posted: Mon Oct 18, 2021 7:39 am
by Chris
Hi Michael,

Nice, that's great to hear! I also learned a few things because of this..(thanks Karl and Frank btw)