You are reading help file online using chmlib.com
|
Rave Reports Developer Guide Render NDR with NO preview |
Top Previous Next |
QUESTION: I want to save my report to a NDR file without any setup dialog or preview screen. How would I do that?
SOLUTION: The following code requires that you have a RvNDRWriter, RvProject and RvSystem components on your form.
Delphi: Procedure TForm1.Button1Click(Sender: TObject); Begin // Set your RvProject engine property to NDRWriter RvProject1.Engine := RvNDRWriter1; RvNDRWriter1.FileName := 'Test1.NDR'; RvProject1.ExecuteReport('YourReportName'); // re-set the RvProject engine property here RvProject1.Engine := RvSystem1; ShowMessage('NDR file created'); End;
C++Builder: void __fastcall TForm1::Button1Click(TObject *Sender) { // Set your RvProject engine property to NDRWriter RvProject1->Engine = RvNDRWriter1; RvNDRWriter1->FileName = "Test1.NDR"; RvProject1->ExecuteReport("YourReportName"); // re-set the RvProject engine property here RvProject1->Engine = RvSystem1; ShowMessage("NDR file created"); }
|
You are reading help file online using chmlib.com
|