CHMlib Logo Leading Translation Management System for Translation Agencies, Top Translation Management Software for Freelance Translators, Time Tracking Software, Word Count, Character Count and Line Count Software, Computer Assisted Translation Tool for Easy Word Count, Clipboard Character Count Software, User-Friendly Translation Memory Software, Terminology Management Software, Terminology Management Server, Microsoft Glossary Software, Dictionary of Acronyms, Social Network for Translators and Translation Agencies, Acronyms and Abbreviations Search Engine, Russian Translation Lab, Ukrainian Translation Lab.
You are reading help file online using chmlib.com
CrisisHelper - First Aid in Tough Times of World Economic Crisis


_bm0 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:

 

1.Use the external RAV-file. Requires that you define it in the TRaveProject-component.
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:

 

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

If you want your help file to be removed or added please send e-mail to chmlibcom@gmail.com