Link to home
Start Free TrialLog in
Avatar of magma_george
magma_george

asked on

Shane the report keeps on displaying but blank

well

i  followed the tutorial http://bdn.borland.com/article/0,1410,31916,00.html
and everything works

i dragged the fields from the database onto the report and then i when i F9 it

it displayed single values (i don't know why ) i saved it as yess.rav and in the RvProject i added the path to the

yess.rav  
then using this code

unit yess;(i also named the unit yess)

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, RpBase, RpSystem, RpDefine, RpRave, RvDLBDE;

type
  TForm1 = class(TForm)
    RvProject1: TRvProject;
    RvSystem1: TRvSystem;
    Button1: TButton;
    procedure Button1Click(Sender: TObject);
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
 RvSystem1.Execute;

end;

procedure TForm1.FormCreate(Sender: TObject);
begin

end;

end.


i try to execute the report but all it does is brings up the blank report

i don't know why

ps. it was also doing it when i tried with a local simple report

becuase now i am using the BDE as you know to connect


please help me

thanks
Avatar of shaneholmes
shaneholmes

You need to add a rvProject component as the tutorial suggests..., then set the engine property to the rvSystem component.

You can then use the projectFile property to load your report from file

Shane
Avatar of magma_george

ASKER

i did that

and it still displays a blank project


if it's ok with you i will send you a file and you can see it

but i cannot figure why




k

Shane
k i sent it to you

You need to do the following:



RvProject1.ProjectFile:= '';
RvProject1.Open;
RvProject1.Execute;

Where project file is the name of your rave report (make sure you have the full path as well)

Example: If it resides in your project directory then:


RvProject1.ProjectFile:= ExtractFilePath(Application.ExeName) + 'MyReport.rav';
RvProject1.Open;
RvProject1.Execute;


SHane
if you could :
can you sent me the application with the changes so i could look at it as a whole


thanks
ASKER CERTIFIED SOLUTION
Avatar of shaneholmes
shaneholmes

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial