Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 10-08-2009, 01:45 PM
aberbotimue aberbotimue is offline
Junior Member
Join Date: Oct 2009
Posts: 8
Question create richtext at runtime, in web app

Hi all...

Can anyone point me in the right direction..

I am running a very quick cgi web application.. but require a print out as an rtf..

in a stand alone app I drop the richtext componant on, and it does what it needs, and then prints, like i want it to.

in the web app, I have to create it at run time.. so I have

with TRichedit.Create(self) do
  Visible := false;
  // Print('Printer');
this gives me an error like

Internal Application Error
Control '' has no parent window
after some time with my good freind google, I found loads saying its about allocating an appropriate parent

so I added

  parent := self;
and tried
  parent := nil;
even tried   parent := application.webform;
all giving me compile errors.. as you may have guessed, i am a weekend coder, not doing this day in day out...

can anyopne give me that special line I need!

Cheers all

Reply With Quote

create, dynamic, richtext, runtime, twebmodule

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

All times are GMT. The time now is 09:59 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.