AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Rave- Fehlermeldung

Ein Thema von Hansa · begonnen am 2. Jul 2005 · letzter Beitrag vom 2. Feb 2006
 
merlin17

Registriert seit: 15. Dez 2002
Ort: Mittelfranken
980 Beiträge
 
Delphi 10 Seattle Enterprise
 
#10

Re: Rave- Fehlermeldung

  Alt 2. Feb 2006, 12:24
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
- TeamNevrona cannot respond to questions received via email -
http://rave-notes.blogspot.com
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 23:25 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-2025 by Thomas Breitkreuz