You are reading help file online using chmlib.com
|
Rave Reports Developer Guide How to Deploy |
Top Previous Next |
QUESTION: How can I deploy my Rave-Reports?
ANSWER: There are several ways to store / deliver your reports:
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.
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".
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;
|
You are reading help file online using chmlib.com
|