Board index » delphi » Crystal Reports 10: Runtime editing of previews

Crystal Reports 10: Runtime editing of previews


2004-10-11 06:57:31 PM
delphi169
Hello,
In Crystal Reports it is possible to edit the Reports in the
Preview-Mode (and not only in design mode). Is there a way to
establish this with Delphi so that the user of my program can
change/edit the report when I preview it in my application? Any help
is greatly appreciated...
TIA,
Colin
 
 

Re:Crystal Reports 10: Runtime editing of previews

On Mon, 11 Oct 2004 12:57:31 +0200, Colin Talbert writes:
Quote
In Crystal Reports it is possible to edit the Reports in the
Preview-Mode (and not only in design mode). Is there a way to
establish this with Delphi so that the user of my program can
change/edit the report when I preview it in my application? Any help
is greatly appreciated...
I figured out thatit should be possible with the following code, using
the Active-X version of the RDC:
V: Variant;
DC: TCRDesignerCtrl10;
[..]
begin
V := CreateOleObject('CrystalRuntime.Application');
V := V.NewReport;
DC.ReportObject := V;
end;
But all I get is:
"Interface not supported"
Can anybody help me here?
(
It works when I use just the Active-X ReportViewer:
RV: TCrystalActiveXReportViewer;
[..]
RV.ReportSource := V;
)