Page 1 of 1

Wrapper for ReportBuilder "Invalid Window Handle"

Posted: Wed Apr 19, 2006 9:34 pm
by mgkrebbs
Hi folks,
I have a web application (IntraWeb) that I run Reportbuilder reports all the time. I set all events and settings so that no Windows dialogs will popup, then do a PsRBRoutines.ExportToPDFInStream(ppReport1,zStream); -using Praagnan export Devices. However, if I try this with a report that has a TppDBRichview in it. I get
---------------------------
Microsoft Internet Explorer
---------------------------
System Error. Code: 1400.
Invalid window handle
---------------------------
OK
---------------------------
It seems to be happening on tthe first line of this procedure in RVScroll.pas:
procedure TRVScroller.CreateWnd;
begin
inherited CreateWnd;
FSmallStep := GetDefSmallStep;
AfterCreateWnd1;
if {$IFDEF RICHVIEWDEF4} not SysLocale.MiddleEast and {$ENDIF}
Assigned(RV_InitializeFlatSB) then
RV_InitializeFlatSB(Handle);
{$IFDEF RVFLATSCROLLBARS}
UpdateScrollStyle(False);
UpdateScrollColor(False);
{$ENDIF}
CreateThemeHandle;
AfterCreateWnd2;
end;
I tried adding code on the "onCreate" event of the report to set the ppDBRichview's "AutoDisplay" to false. -Didn't help.
Anyone have any ideas?
Thanks.

Posted: Thu Apr 27, 2006 7:08 pm
by Sergey Tkachenko
answered in private message

Wrapper for ReportBuilder "Invalid Window Handle"

Posted: Wed May 17, 2006 8:41 pm
by mgkrebbs
Sergey,
I tried a couple of private messages to you to get update on this issue. Did you get them? I did not get a response.
-Thanks

Posted: Thu May 18, 2006 5:16 pm
by Sergey Tkachenko
Answered in PM

"Invalid Window Handle" -need a response

Posted: Mon Jun 05, 2006 3:02 pm
by mgkrebbs
Sergey-
We haven't heard from you on this. Didyou get the demo, etc? Please get in contact with us.

Posted: Mon Jun 05, 2006 7:11 pm
by Sergey Tkachenko
Sorry for the long delay.
Yes, I received your demo.
I'll try to solve the problem tomorrow.

"Invalid Window Handle" issue fixed Thanks

Posted: Fri Jun 09, 2006 3:46 pm
by mgkrebbs
Sergey,
Thanks for the fix.