Wrapper for ReportBuilder "Invalid Window Handle"
Posted: Wed Apr 19, 2006 9:34 pm
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
Anyone have any ideas?
Thanks.
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
It seems to be happening on tthe first line of this procedure in RVScroll.pas:---------------------------
Microsoft Internet Explorer
---------------------------
System Error. Code: 1400.
Invalid window handle
---------------------------
OK
---------------------------
I tried adding code on the "onCreate" event of the report to set the ppDBRichview's "AutoDisplay" to false. -Didn't help.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;
Anyone have any ideas?
Thanks.