Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi Rave- Fehlermeldung (https://www.delphipraxis.net/48915-rave-fehlermeldung.html)

Hansa 2. Jul 2005 14:22


Rave- Fehlermeldung
 
Hi,

weiß einer was das da bedeutet ?

"The following reporting project doesn't exist : ''''"

:shock:

Das kommt an dieser Stelle :

Delphi-Quellcode:
RvProject1.Execute;

Keldorn 2. Jul 2005 15:22

Re: Rave- Fehlermeldung
 
Hallo

du hast kein Projectfile angegeben (gleichlautende Eigenschaft von Rvproject).

Mfg Frank

Hansa 2. Jul 2005 22:13

Re: Rave- Fehlermeldung
 
Hääääää? :shock: :mrgreen: Wie meinst Du das ? Im Programm ist ein RvProject und eine RvDataSet Connection auf der Form. In Rave kann ich das alles auch zuordnen !

Keldorn 3. Jul 2005 11:34

Re: Rave- Fehlermeldung
 
Du speicherst im raveDesigner das Project und mußt es in Delphi als Projectfile angeben.

Mfg Frank

Hansa 3. Jul 2005 11:59

Re: Rave- Fehlermeldung
 
Danke Keldorn, das wars. Wen es interessiert : bei der Komponente RvProject im Delphi-Programm muß der Ort der RAV-Datei im OI eingetragen werden. Allerdings taucht jetzt noch eine kleine Nebenfrage auf. Wird der Report, also die RAV-Datei, automatisch in die EXE eingelinkt, oder muß da auch noch was eingestellt werden ?

Keldorn 3. Jul 2005 13:29

Re: Rave- Fehlermeldung
 
Zitat:

Zitat von Hansa
Wird der Report, also die RAV-Datei, automatisch in die EXE eingelinkt, oder muß da auch noch was eingestellt werden ?

Nein, wird er nicht. 2 Varianten: 1. Du mußt die .rav-Datei mitgeben (da kommt man aber sicher besser, man stellt das Projectfile im code ein und paßt das verzeichnis an). 2. Storerav-Eigenschaft des rvprojects, dann wird das Rave-project mit in die exe integriert, wenn du dein raveproject im designer änderst und die neue Exe weitergeben willst, mußt du auch jedesmal die Storerav-eigenschaft aktualisieren.
Mfg Frank

Hansa 3. Jul 2005 13:42

Re: Rave- Fehlermeldung
 
StoreRave des RvProject steht auf "none" und wenn ich die 3 Punkte anklicke öffnet sich ein Dialog-Fenster und da steht : "Datei, die in die EXE eincompiliert wird : RvProject1". Dann wird es wohl so sein, daß die RAV-Datei default-mäßig in der EXE schon drin ist, oder nicht ?

Keldorn 3. Jul 2005 14:34

Re: Rave- Fehlermeldung
 
Zitat:

Zitat von Hansa
Dann wird es wohl so sein, daß die RAV-Datei default-mäßig in der EXE schon drin ist, oder nicht ?

Dein rave-project wird erst mit in die exe genommen, wenn du dort auf "load" klickst.

Glühwürmchen 1. Feb 2006 18:00

Re: Rave- Fehlermeldung
 
Gibt es eine Möglichkeit in StorRav einen relativen Pfad anzugeben und dafür zu sorgen, daß die dort vorhandene *.rav automatisch in die neue .Exe reinCompiliert wird?

merlin17 2. Feb 2006 13:24

Re: Rave- Fehlermeldung
 
hmmmm, durch das load wird die rav einfach als raveBlob im Formular persistent gespeichert;
wenn Du es dynamisch willst, schau dir einmal Nr. 2.4.1 aus dem RaveFAQ (seit Rave6 in der RaveDevGuide.pdf)
an:

Zitat:

2.4.1 How to Deploy
QUESTION:
How can I deploy my Rave-Reports?
ANSWER:
There are several ways to store / deliver your reports:
1. Use the external RAV-file. Requires that you define it in the TRaveProject-component.
Delphi-Quellcode:
RvProject1.ProjectFile := ExtractFilePath(Application.ExeName) +
'Project1.rav';
RvProject1.Open;
Be alert that if you select the RAV-file in the Delphi-IDE, then Delphi will store the complete
path information including the developer folder. Normally, the User will not have the same
folder structure and that will result in an error that your application can not find the RAV file.
2. Store the RAV file directly in your EXE application (only one file to distribute).
Go to your RvProject component and select the "StoreRav" property. Click on the ellipse
(3dots) and point to your RAV file. Remember to use the "Load" and "Save" buttons
whenever you have made changes to the RAV file.
NOTE: with Rave 5.0.4 or earlier, the form that contains the RvProject must NOT be set to
"text" format. To change it, go to the form that contains the RvProject-component.
Right-click on the form and be sure that the Delphi DFM format is not set as "Text Format".
3. Store the Rave-file inside a Resource-file, BLOB-Field or in a DLL like the following:
Delphi-Quellcode:
Var
TP_res : TResourceStream; (or all the other ways)
Begin
TP_res := TResourceStream.create(Hinstance,'mein_report','RAVE');
If (res = NIL) Then Begin
MessageDlg("There is a problem, please call the developer g>…..',
mtError, [mbok],0);
exit;
End;
RvProject1.New;
RvProject1.LoadFromStream(TP_res);
RvProject1.SelectReport('Invoice',false);
RvProject1.Execute; // or ExecuteReport….
RvProject1.Close;
TP_res.Free; // the pre-.net Garbage Collector <g>
End;


:-) thomas, TeamNevrona


Alle Zeitangaben in WEZ +1. Es ist jetzt 04:00 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz