Wrapper for ReportBuilder "Invalid Window Handle"

General TRichView support forum. Please post your questions here
Post Reply
mgkrebbs
Posts: 10
Joined: Thu Feb 23, 2006 8:45 pm

Wrapper for ReportBuilder "Invalid Window Handle"

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

answered in private message
mgkrebbs
Posts: 10
Joined: Thu Feb 23, 2006 8:45 pm

Wrapper for ReportBuilder "Invalid Window Handle"

Post 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
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Answered in PM
mgkrebbs
Posts: 10
Joined: Thu Feb 23, 2006 8:45 pm

"Invalid Window Handle" -need a response

Post by mgkrebbs »

Sergey-
We haven't heard from you on this. Didyou get the demo, etc? Please get in contact with us.
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Sorry for the long delay.
Yes, I received your demo.
I'll try to solve the problem tomorrow.
mgkrebbs
Posts: 10
Joined: Thu Feb 23, 2006 8:45 pm

"Invalid Window Handle" issue fixed Thanks

Post by mgkrebbs »

Sergey,
Thanks for the fix.
Post Reply